Skip to content

Commit

Permalink
Update ci.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
hectorgomezv committed Jul 25, 2023
1 parent 4c9b273 commit 933cb85
Showing 1 changed file with 5 additions and 13 deletions.
18 changes: 5 additions & 13 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,24 +73,16 @@ jobs:
- name: Checkout
uses: actions/checkout@v2

- name: Extract commit metadata
id: meta
uses: docker/metadata-action@v3
with:
images: hectorgomezv1/financial-advisor-nestjs

- name: Login to DockerHub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}

- name: Build and push
uses: docker/build-push-action@v2
- name: Build and push image
uses: docker/build-push-action@v4
env:
DOCKER_IMAGE_TAG: hectorgomezv1/financial-advisor-nestjs:${{ github.ref_name }}
with:
context: .
file: ./Dockerfile
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
build-args: GITHUB_RUN_NUMBER=${{ github.GITHUB_RUN_NUMBER }}
tags: ${{ env.DOCKER_IMAGE_TAG }}

0 comments on commit 933cb85

Please sign in to comment.