Skip to content

Commit

Permalink
fix(ci): remove IMAGE_TAG env from publish workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
hanseo0507 committed Jul 2, 2023
1 parent 18ba04e commit a4842f3
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ on:

env:
IMAGE_NAME: ${{ github.repository }}
IMAGE_TAG: ${{ github.event.release.tag_name }}

jobs:
push_to_registry:
Expand Down Expand Up @@ -36,14 +35,14 @@ jobs:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@9ec57ed1fcdbf14dcef7dfbe97b2010124a938b7
with:
images: |
${{ steps.ecr.outputs.registry }}/${{ env.IMAGE_NAME }}:${{ env.IMAGE_TAG }}
ghcr.io/${{ env.IMAGE_NAME }}:${{ env.IMAGE_TAG }}
${{ steps.ecr.outputs.registry }}/${{ env.IMAGE_NAME }}
ghcr.io/${{ env.IMAGE_NAME }}
- name: Build and push Docker image
uses: docker/build-push-action@f2a1d5e99d037542a71f64918e516c093c6f3fc4
Expand Down

0 comments on commit a4842f3

Please sign in to comment.