Skip to content

Commit

Permalink
refactor: Add latest tag
Browse files Browse the repository at this point in the history
  • Loading branch information
kimyvgy committed Oct 16, 2023
1 parent 1043680 commit 2ad3626
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 6 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/account-service.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@ jobs:
context: ./src/account-service
file: ./src/account-service/dockerfiles/prod.Dockerfile
push: ${{ github.event_name == 'push' }}
tags: ghcr.io/${{ github.repository_owner }}/microservices-example/account-service:build-${{ github.run_number }}
tags: |
ghcr.io/${{ github.repository_owner }}/microservices-example/account-service:build-${{ github.run_number }}
ghcr.io/${{ github.repository_owner }}/microservices-example/account-service:latest
cache-from: type=gha
cache-to: type=gha,mode=max
4 changes: 3 additions & 1 deletion .github/workflows/account-subgraph.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@ jobs:
context: ./src/account-subgraph
file: ./src/account-subgraph/dockerfiles/prod.Dockerfile
push: ${{ github.event_name == 'push' }}
tags: ghcr.io/${{ github.repository_owner }}/microservices-example/account-subgraph:build-${{ github.run_number }}
tags: |
ghcr.io/${{ github.repository_owner }}/microservices-example/account-subgraph:build-${{ github.run_number }}
ghcr.io/${{ github.repository_owner }}/microservices-example/account-subgraph:latest
cache-from: type=gha
cache-to: type=gha,mode=max
4 changes: 3 additions & 1 deletion .github/workflows/contents-view-subgraph.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@ jobs:
context: ./src/contents-view-subgraph
file: ./src/contents-view-subgraph/dockerfiles/prod.Dockerfile
push: ${{ github.event_name == 'push' }}
tags: ghcr.io/${{ github.repository_owner }}/microservices-example/contents-view-subgraph:build-${{ github.run_number }}
tags: |
ghcr.io/${{ github.repository_owner }}/microservices-example/contents-view-subgraph:build-${{ github.run_number }}
ghcr.io/${{ github.repository_owner }}/microservices-example/contents-view-subgraph:latest
cache-from: type=gha
cache-to: type=gha,mode=max
4 changes: 3 additions & 1 deletion .github/workflows/views-count-service.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@ jobs:
context: ./src/views-count-service
file: ./src/views-count-service/dockerfiles/prod.Dockerfile
push: ${{ github.event_name == 'push' }}
tags: ghcr.io/${{ github.repository_owner }}/microservices-example/views-count-service:build-${{ github.run_number }}
tags: |
ghcr.io/${{ github.repository_owner }}/microservices-example/views-count-service:build-${{ github.run_number }}
ghcr.io/${{ github.repository_owner }}/microservices-example/views-count-service:latest
cache-from: type=gha
cache-to: type=gha,mode=max
4 changes: 3 additions & 1 deletion .github/workflows/views-count-subgraph.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@ jobs:
context: ./src/views-count-subgraph
file: ./src/views-count-subgraph/dockerfiles/prod.Dockerfile
push: ${{ github.event_name == 'push' }}
tags: ghcr.io/${{ github.repository_owner }}/microservices-example/views-count-subgraph:build-${{ github.run_number }}
tags: |
ghcr.io/${{ github.repository_owner }}/microservices-example/views-count-subgraph:build-${{ github.run_number }}
ghcr.io/${{ github.repository_owner }}/microservices-example/views-count-subgraph:latest
cache-from: type=gha
cache-to: type=gha,mode=max
4 changes: 3 additions & 1 deletion .github/workflows/web-app.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@ jobs:
context: ./src/web-app
file: ./src/web-app/dockerfiles/prod.Dockerfile
push: ${{ github.event_name == 'push' }}
tags: ghcr.io/${{ github.repository_owner }}/microservices-example/web-app:build-${{ github.run_number }}
tags: |
ghcr.io/${{ github.repository_owner }}/microservices-example/web-app:build-${{ github.run_number }}
ghcr.io/${{ github.repository_owner }}/microservices-example/web-app:latest
cache-from: type=gha
cache-to: type=gha,mode=max

0 comments on commit 2ad3626

Please sign in to comment.