-
Notifications
You must be signed in to change notification settings - Fork 14
64 lines (58 loc) · 1.7 KB
/
release-images.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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
name: release-images
on:
# Manual trigger
workflow_dispatch: { }
# Automatic trigger after each release
# Note: Triggers on both successes and failures (see conditional below)
workflow_run:
workflows:
- release
types:
- completed
env:
# AWS credentials (needed only to list a bucket)
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
AWS_DEFAULT_REGION: us-west-2
jobs:
build_images:
name: Build Images
runs-on: ubuntu-latest
if: |
github.event.workflow_run.conclusion == 'success' ||
github.event.workflow_run.conclusion == null
steps:
- uses: actions/checkout@v4
- name: Log in to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build base image
run: |
cd images/
make kamu-base
- name: Build images with sample data
run: |
cd images/
make kamu-base-with-data
make kamu-base-with-data-mt
make kamu-base-with-env-var-storage
- name: Build sqlx-cli image
run: |
cd images/
make sqlx-cli
- name: Build sqlx-cli image with migrations
run: |
cd images/
make sqlx-cli-with-migrations
- name: Publish images
run: |
cd images
make kamu-base-push
make kamu-base-with-data-push
make kamu-base-with-data-mt-push
make kamu-base-with-env-var-storage-push
make sqlx-cli-push
make sqlx-cli-with-migrations-push