Skip to content

Commit

Permalink
Merge pull request #1004 from yaacov/fix-action-on-release
Browse files Browse the repository at this point in the history
🧼 Fix action on release I
  • Loading branch information
yaacov authored Mar 20, 2024
2 parents 829b536 + a28b05d commit f2872e4
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/on-push-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,17 @@ jobs:
username: ${{ secrets.QUAY_USERNAME }}
password: ${{ secrets.QUAY_TOKEN }}

- name: Extract branch name
shell: bash
run: echo "BRANCH_NAME=$(echo ${GITHUB_REF#refs/heads/} | sed 's/\//-/g')" >> $GITHUB_ENV

- name: Build and push Docker image
uses: docker/build-push-action@v5
with:
context: .
file: ./build/Containerfile
push: true
tags: quay.io/kubev2v/forklift-console-plugin:${GITHUB_REF#refs/heads/}
tags: quay.io/kubev2v/forklift-console-plugin:${{ env.BRANCH_NAME }}

- name: Logout from Quay.io
run: docker logout quay.io

0 comments on commit f2872e4

Please sign in to comment.