Skip to content

Commit d162101

Browse files
committed
fix: Update GitHub Actions workflow with simplified Docker caching
1 parent 1eed141 commit d162101

1 file changed

Lines changed: 3 additions & 5 deletions

File tree

.github/workflows/ci.yml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,6 @@ jobs:
4949
with:
5050
context: .
5151
push: true
52-
tags: |
53-
${{ secrets.DOCKERHUB_USERNAME }}/go_webapp:latest
54-
${{ secrets.DOCKERHUB_USERNAME }}/go_webapp:${{ github.sha }}
55-
cache-from: type=registry,ref=${{ secrets.DOCKERHUB_USERNAME }}/go_webapp:buildcache
56-
cache-to: type=registry,ref=${{ secrets.DOCKERHUB_USERNAME }}/go_webapp:buildcache,mode=max
52+
tags: ${{ secrets.DOCKERHUB_USERNAME }}/go_webapp:latest
53+
cache-from: type=gha
54+
cache-to: type=gha,mode=max

0 commit comments

Comments
 (0)