Skip to content

Commit

Permalink
Upgrade version
Browse files Browse the repository at this point in the history
  • Loading branch information
Arnab-Developer committed Apr 8, 2022
1 parent 8639543 commit 7b198e4
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/back-end-ci-cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
- name: Publish
run: dotnet publish 'FrontEndBackEndDemo.Api/FrontEndBackEndDemo.Api.csproj' --configuration Release -o 'publish/app'
- name: Docker build
run: docker build -f 'FrontEndBackEndDemo.Api/Dockerfile' -t 45862391/frontendbackenddemo-backend:1.0.2 .
run: docker build -f 'FrontEndBackEndDemo.Api/Dockerfile' -t 45862391/frontendbackenddemo-backend:1.0.3 .

github-docker-push:
if: ${{ github.event_name == 'push' }}
Expand All @@ -42,15 +42,15 @@ jobs:
- name: Publish
run: dotnet publish 'FrontEndBackEndDemo.Api/FrontEndBackEndDemo.Api.csproj' --configuration Release -o 'publish/app'
- name: Docker build
run: docker build -f 'FrontEndBackEndDemo.Api/Dockerfile' -t ghcr.io/arnab-developer/frontendbackenddemo/backend:1.0.2 .
run: docker build -f 'FrontEndBackEndDemo.Api/Dockerfile' -t ghcr.io/arnab-developer/frontendbackenddemo/backend:1.0.3 .
- name: GitHub Container Registry login
uses: docker/login-action@v1
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Docker push
run: docker push ghcr.io/arnab-developer/frontendbackenddemo/backend:1.0.2
run: docker push ghcr.io/arnab-developer/frontendbackenddemo/backend:1.0.3

dockerhub-push:
if: ${{ github.event_name == 'release' }}
Expand All @@ -70,11 +70,11 @@ jobs:
- name: Publish
run: dotnet publish 'FrontEndBackEndDemo.Api/FrontEndBackEndDemo.Api.csproj' --configuration Release -o 'publish/app'
- name: Docker build
run: docker build -f 'FrontEndBackEndDemo.Api/Dockerfile' -t 45862391/frontendbackenddemo-backend:1.0.2 .
run: docker build -f 'FrontEndBackEndDemo.Api/Dockerfile' -t 45862391/frontendbackenddemo-backend:1.0.3 .
- name: Login to Docker Hub
uses: docker/login-action@v1
with:
username: ${{ 45862391 }}
password: ${{ secrets.DOCKERHUB_PWD }}
- name: Docker push
run: docker push 45862391/frontendbackenddemo-backend:1.0.2
run: docker push 45862391/frontendbackenddemo-backend:1.0.3
10 changes: 5 additions & 5 deletions .github/workflows/front-end-ci-cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
- name: Publish
run: dotnet publish 'FrontEndBackEndDemo.Web/FrontEndBackEndDemo.Web.csproj' --configuration Release -o 'publish/app'
- name: Docker build
run: docker build -f 'FrontEndBackEndDemo.Web/Dockerfile' -t docker.pkg.github.com/arnab-developer/frontendbackenddemo/frontend:1.0.2 .
run: docker build -f 'FrontEndBackEndDemo.Web/Dockerfile' -t docker.pkg.github.com/arnab-developer/frontendbackenddemo/frontend:1.0.3 .

github-docker-push:
if: ${{ github.event_name == 'push' }}
Expand All @@ -42,15 +42,15 @@ jobs:
- name: Publish
run: dotnet publish 'FrontEndBackEndDemo.Web/FrontEndBackEndDemo.Web.csproj' --configuration Release -o 'publish/app'
- name: Docker build
run: docker build -f 'FrontEndBackEndDemo.Web/Dockerfile' -t ghcr.io/arnab-developer/frontendbackenddemo/frontend:1.0.2 .
run: docker build -f 'FrontEndBackEndDemo.Web/Dockerfile' -t ghcr.io/arnab-developer/frontendbackenddemo/frontend:1.0.3 .
- name: GitHub Container Registry login
uses: docker/login-action@v1
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Docker push
run: docker push ghcr.io/arnab-developer/frontendbackenddemo/frontend:1.0.2
run: docker push ghcr.io/arnab-developer/frontendbackenddemo/frontend:1.0.3

dockerhub-push:
if: ${{ github.event_name == 'release' }}
Expand All @@ -70,11 +70,11 @@ jobs:
- name: Publish
run: dotnet publish 'FrontEndBackEndDemo.Web/FrontEndBackEndDemo.Web.csproj' --configuration Release -o 'publish/app'
- name: Docker build
run: docker build -f 'FrontEndBackEndDemo.Web/Dockerfile' -t 45862391/frontendbackenddemo-frontend:1.0.2 .
run: docker build -f 'FrontEndBackEndDemo.Web/Dockerfile' -t 45862391/frontendbackenddemo-frontend:1.0.3 .
- name: Login to Docker Hub
uses: docker/login-action@v1
with:
username: ${{ 45862391 }}
password: ${{ secrets.DOCKERHUB_PWD }}
- name: Docker push
run: docker push 45862391/frontendbackenddemo-frontend:1.0.2
run: docker push 45862391/frontendbackenddemo-frontend:1.0.3

0 comments on commit 7b198e4

Please sign in to comment.