Skip to content

Commit

Permalink
Update cicd.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
Wiran-Larbi authored Apr 4, 2024
1 parent 02eeac2 commit fcef95a
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions .github/workflows/cicd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -78,23 +78,23 @@ jobs:
- name: Tag to Dockerhub
run: |
docker tag backend dotcipher/sp-backend:latest
docker tag frontend dotcipher/sp-frontend:latest
docker tag backend dotcipher1/sp-backend:latest
docker tag frontend dotcipher1/sp-frontend:latest
- name: Login to Dockerhub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_HUB_USERNAME }}
password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}

# - name: Push to Dockerhub
# run: |
# docker push dotcipher/sp-backend:latest
# docker push dotcipher/sp-frontend:latest

- name: Push to Dockerhub
uses: docker/build-push-action@v5.3.0
with:
push: true
tags: "dotcipher/sp-backend:latest ,dotcipher/sp-frontend:latest"
github-token: ${{ secrets.GITHUB_TOKEN }}
run: |
docker push dotcipher/sp-backend:latest
docker push dotcipher/sp-frontend:latest
# - name: Push to Dockerhub
# uses: docker/build-push-action@v5.3.0
# with:
# push: true
# tags: "dotcipher/sp-backend:latest ,dotcipher/sp-frontend:latest"
# github-token: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit fcef95a

Please sign in to comment.