Skip to content

Commit

Permalink
GITHUB_REF_NAME
Browse files Browse the repository at this point in the history
  • Loading branch information
Lukas Metzner committed May 26, 2024
1 parent 5bea3fa commit 37ef468
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,15 @@ jobs:
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Extract branch name
id: extract_branch
run: echo "BRANCH_NAME=${GITHUB_REF_NAME}" >> $GITHUB_ENV

- name: Build and push Docker image
uses: docker/[email protected]
with:
context: .
push: true
tags: ghcr.io/lukasmetzner/podprox:${GITHUB_REF_NAME}
tags: |
ghcr.io/lukasmetzner/podprox:latest
ghcr.io/lukasmetzner/podprox:${{ env.BRANCH_NAME }}

0 comments on commit 37ef468

Please sign in to comment.