Skip to content

Commit

Permalink
fix(CI): set correct branch name in docker push
Browse files Browse the repository at this point in the history
  • Loading branch information
MagneticNeedle authored Jul 10, 2023
1 parent 9af686b commit bc42640
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ on:
env:
REGISTRY: ghcr.io
IMAGE_NAME: ${{ github.repository }}
BRANCH_NAME: ${{ github.head_ref || github.ref_name }}

jobs:
production-deploy:
Expand All @@ -24,8 +25,6 @@ jobs:
steps:
- uses: actions/checkout@v3

- uses: nelonoel/[email protected]

- name: Login to container registry
uses: docker/login-action@v2
with:
Expand All @@ -37,7 +36,7 @@ jobs:
id: meta
uses: docker/metadata-action@v4
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}/$BRANCH_NAME
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}/${{ env.BRANCH_NAME }}
# ghcr.io/battlefield-portal-community/bfportal.gg/production:latest

- name: Set up Docker Buildx
Expand Down

0 comments on commit bc42640

Please sign in to comment.