-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (37 loc) · 1.25 KB
/
build.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
name: Build and push eidos Docker images
on:
release:
types:
- published
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Build and push the Docker Image to the GitHub Container Registry
uses: actions/checkout@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Build and push the Docker Image to the GitHub Container Registry
uses: docker/[email protected]
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push the base Docker image
uses: docker/[email protected]
with:
context: .
file: ./Dockerfile
push: true
cache-from: type=gha
cache-to: type=gha,mode=max
tags: ghcr.io/khaosresearch/eidos:latest,ghcr.io/khaosresearch/eidos:${{ github.event.release.tag_name }}
- name: Build and push the lambda Docker image
uses: docker/[email protected]
with:
context: .
file: ./Dockerfile.lambda
push: true
cache-from: type=gha
cache-to: type=gha,mode=max
tags: ghcr.io/khaosresearch/eidos-lambda:latest,ghcr.io/khaosresearch/eidos-lambda:${{ github.event.release.tag_name }}