Skip to content

Commit

Permalink
Update hw25-ci-cd.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
vyefremov committed Jun 23, 2024
1 parent 62c74fc commit 5f52212
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/hw25-ci-cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -91,15 +91,15 @@ jobs:
- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}

- name: Build Docker Image
working-directory: './hw25-ci-cd/src/webapi'
run: docker build -t hw25-webapi:${{ env.GitVersion_FullSemVer }} .

- name: Tag Docker Image
run: docker tag hw25-webapi:${{ env.GitVersion_FullSemVer }} ${{ secrets.DOCKER_USERNAME }}/hw25-webapi:${{ env.GitVersion_FullSemVer }}
run: docker tag hw25-webapi:${{ env.GitVersion_FullSemVer }} ${{ secrets.DOCKERHUB_USERNAME }}/hw25-webapi:${{ env.GitVersion_FullSemVer }}

- name: Push Docker Image
run: docker push ${{ secrets.DOCKER_USERNAME }}/hw25-webapi:${{ env.GitVersion_FullSemVer }}
run: docker push ${{ secrets.DOCKERHUB_USERNAME }}/hw25-webapi:${{ env.GitVersion_FullSemVer }}

0 comments on commit 5f52212

Please sign in to comment.