diff --git a/.github/workflows/build-push-image.yml b/.github/workflows/build-push-image.yml index b9c96ad..0bad0f7 100644 --- a/.github/workflows/build-push-image.yml +++ b/.github/workflows/build-push-image.yml @@ -5,6 +5,7 @@ on: push: branches: - 'development' + - 'release-1.9' jobs: push-image: @@ -14,12 +15,17 @@ jobs: contents: read packages: write steps: + - name: Extract branch name + shell: bash + run: echo "branch=${GITHUB_HEAD_REF:-${GITHUB_REF#refs/heads/}}" >> $GITHUB_OUTPUT + id: extract_branch + - name: Check out Yoda repository uses: actions/checkout@v3 with: path: yoda repository: UtrechtUniversity/yoda - ref: development + ref: ${{ steps.extract_branch.outputs.branch }} - name: Authenticate to the container registry uses: docker/login-action@v2 @@ -34,4 +40,6 @@ jobs: context: yoda/docker/images/yoda_eus file: yoda/docker/images/yoda_eus/Dockerfile push: true - tags: ghcr.io/utrechtuniversity/yoda-eus:dev-1.9 + tags: ghcr.io/utrechtuniversity/yoda-eus:${{ steps.extract_branch.outputs.branch }} + build-args: | + TAG=${{ steps.extract_branch.outputs.branch }}