Skip to content

Commit

Permalink
changing tag in cd
Browse files Browse the repository at this point in the history
  • Loading branch information
Rudiio committed Dec 11, 2023
1 parent 537a4a0 commit 1aba4d5
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/ci.yaml → .github/workflows/ci-cd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,13 +44,13 @@ jobs:
run: docker login -u ${{ secrets.DOCKER_HUB_USERNAME }} -p ${{ secrets.DOCKER_HUB_TOKEN }}

- name: Build
run: docker build -t back .
run: docker build -t sentibites .
- name: Tags
run: |
docker tag back ${{ secrets.DOCKER_HUB_USERNAME }}/back:${{ github.sha }}
docker tag back ${{ secrets.DOCKER_HUB_USERNAME }}/back:latest
docker tag sentibites ${{ secrets.DOCKER_HUB_USERNAME }}/sentibites:${{ github.sha }}
docker tag sentibites ${{ secrets.DOCKER_HUB_USERNAME }}/sentibites:latest
- name: Push
run: |
docker push ${{ secrets.DOCKER_HUB_USERNAME }}/back:${{ github.sha }}
docker push ${{ secrets.DOCKER_HUB_USERNAME }}/back:latest
docker push ${{ secrets.DOCKER_HUB_USERNAME }}/sentibites:${{ github.sha }}
docker push ${{ secrets.DOCKER_HUB_USERNAME }}/sentibites:latest

0 comments on commit 1aba4d5

Please sign in to comment.