Skip to content

Commit

Permalink
change the images name to not overlap with ones working perfectly
Browse files Browse the repository at this point in the history
  • Loading branch information
wwoszczek committed Dec 6, 2023
1 parent a5a83b1 commit cb8a7c0
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/backend.yml
Original file line number Diff line number Diff line change
Expand Up @@ -85,14 +85,14 @@
run: docker login -u ${{ secrets.DOCKER_USER }} -p ${{ secrets.DOCKER_PASSWORD }}

- name: Build
run: docker build -f Dockerfile-backend.txt . -t app-beans-backend
run: docker build -f Dockerfile-backend.txt . -t app-beans-backend-github-actions

- name: Tags
run: |
docker tag app-beans-backend ${{ secrets.DOCKER_USER }}/app-beans-backend:${{ github.sha }}
docker tag app-beans-backend ${{ secrets.DOCKER_USER }}/app-beans-backend:latest
docker tag app-beans-backend-github-actions ${{ secrets.DOCKER_USER }}/app-beans-backend-github-actions:${{ github.sha }}
docker tag app-beans-backend-github-actions ${{ secrets.DOCKER_USER }}/app-beans-backend-github-actions:latest
- name: Push
run: |
docker push ${{ secrets.DOCKER_USER }}/app-beans-backend:${{ github.sha }}
docker push ${{ secrets.DOCKER_USER }}/app-beans-backend:latest
docker push ${{ secrets.DOCKER_USER }}/app-beans-backend-github-actions:${{ github.sha }}
docker push ${{ secrets.DOCKER_USER }}/app-beans-backend-github-actions:latest
10 changes: 5 additions & 5 deletions .github/workflows/frontend.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,14 +45,14 @@
run: docker login -u ${{ secrets.DOCKER_USER }} -p ${{ secrets.DOCKER_PASSWORD }}

- name: Build
run: docker build -f Dockerfile-frontend.txt . -t app-beans-frontend
run: docker build -f Dockerfile-frontend.txt . -t app-beans-frontend-github-actions

- name: Tags
run: |
docker tag app-beans-frontend ${{ secrets.DOCKER_USER }}/app-beans-frontend:${{ github.sha }}
docker tag app-beans-frontend ${{ secrets.DOCKER_USER }}/app-beans-frontend:latest
docker tag app-beans-frontend-github-actions ${{ secrets.DOCKER_USER }}/app-beans-frontend-github-actions:${{ github.sha }}
docker tag app-beans-frontend-github-actions ${{ secrets.DOCKER_USER }}/app-beans-frontend-github-actions:latest
- name: Push
run: |
docker push ${{ secrets.DOCKER_USER }}/app-beans-frontend:${{ github.sha }}
docker push ${{ secrets.DOCKER_USER }}/app-beans-frontend:latest
docker push ${{ secrets.DOCKER_USER }}/app-beans-frontend-github-actions:${{ github.sha }}
docker push ${{ secrets.DOCKER_USER }}/app-beans-frontend-github-actions:latest

0 comments on commit cb8a7c0

Please sign in to comment.