Release Versioned Images #1
Workflow file for this run
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 Versioned Images | |
on: | |
release: | |
types: [published] | |
env: | |
IMAGE_REG: ghcr.io | |
BUILD_INFO: "Build:stable / Workflow:${{ github.workflow }} / RunId:${{ github.run_id }} / Ref:${{ github.ref }} / SHA:${{ github.sha }} / ImageTag:${{ github.event.release.tag_name }}" | |
IMAGE_TAG: ${{ github.event.release.tag_name }} | |
jobs: | |
release-images: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: "Run all image builds" | |
run: | | |
make docker-build IMAGE_TAG=$IMAGE_TAG VERSION=$IMAGE_TAG BUILD_INFO="$BUILD_INFO" | |
make docker-build IMAGE_TAG=latest VERSION=$IMAGE_TAG BUILD_INFO="$BUILD_INFO" | |
- name: "Login to registry" | |
run: echo ${{ secrets.GITHUB_TOKEN }} | docker login $IMAGE_REG -u $GITHUB_ACTOR --password-stdin | |
- name: "Push to Registry" | |
run: | | |
make docker-push IMAGE_TAG=$IMAGE_TAG | |
make docker-push IMAGE_TAG=latest |