Skip to content

Commit

Permalink
Update push-docker-image.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
amirhnajafiz authored Aug 13, 2023
1 parent c29d275 commit 7454ea2
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions .github/workflows/push-docker-image.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,17 +24,14 @@ jobs:
username: ${{ env.DOCKER_USER }}
password: ${{ env.DOCKER_PASSWORD }}

- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@9ec57ed1fcdbf14dcef7dfbe97b2010124a938b7
with:
images: ${{ env.DOCKER_USER }}/${{ env.REPO_NAME }}
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2

- name: Build and push Docker image
uses: docker/build-push-action@3b5e8027fcad23fda98b2e3ac259d8d67585f671
uses: docker/build-push-action@v4
with:
context: .
file: ./build/Dockerfile
push: true
tags: ${{ steps.vars.outputs.tag }}
tags: ${{ env.DOCKER_USER }}/${{ env.REPO_NAME }}:${{ steps.vars.outputs.tag }}
labels: ${{ steps.meta.outputs.labels }}

0 comments on commit 7454ea2

Please sign in to comment.