release-images #62
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | |
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 kamu-web-ui image | |
run: | | |
cd images/ | |
make kamu-web-ui | |
- name: Publish images | |
run: | | |
cd images | |
make kamu-web-ui-push |