cicd: also push bleeding image on git tags #77
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: Docker (Feature Branch) | |
on: | |
push: | |
branches-ignore: | |
- main | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Login to GitHub Container Registry | |
uses: docker/login-action@v3 | |
with: | |
registry: ghcr.io | |
username: ${{ github.repository_owner }} | |
password: ${{ secrets.GITHUB_TOKEN }} | |
- name: Build Docker image | |
run: | | |
docker build \ | |
--build-arg="COMMIT_SHA=${{ github.sha }}"\ | |
--build-arg="IMAGE_VERSION=${{ github.sha }}-stella-test" \ | |
-t ghcr.io/${{ github.repository }}:${{ github.sha }}-stella-test . |