Skip to content

release-images

release-images #247

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