Skip to content

Commit

Permalink
ci: fix wrong parameter to docker build command
Browse files Browse the repository at this point in the history
  • Loading branch information
lucasgmarques committed Jul 11, 2024
1 parent 7c7dac4 commit a326c45
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:

jobs:
build-and-push:
name: "Build and Push"
name: Build and Push
runs-on: ubuntu-latest

steps:
Expand All @@ -27,10 +27,10 @@ jobs:
password: ${{ secrets.DOCKERHUB_TOKEN }}

- name: Build docker image
run: docker build -t lucas${{ secrets.DOCKERHUB_USERNAME }}gmarques/nlw-api-journey:${{ steps.generate_sha.outputs.sha }} .
run: docker build -t ${{ secrets.DOCKERHUB_USERNAME }}/nlw-api-journey:${{ steps.generate_sha.outputs.sha }} .

- name: Push image
run: |
run: |
docker push ${{ secrets.DOCKERHUB_USERNAME }}/nlw-api-journey:${{ steps.generate_sha.outputs.sha }}
docker tag ${{ secrets.DOCKERHUB_USERNAME }}/nlw-api-journey:${{ steps.generate_sha.outputs.sha }} ${{ secrets.DOCKERHUB_USERNAME }}/nlw-api-journey:latest
docker push ${{ secrets.DOCKERHUB_USERNAME }}/nlw-api-journey:latest
docker push ${{ secrets.DOCKERHUB_USERNAME }}/nlw-api-journey:latest

0 comments on commit a326c45

Please sign in to comment.