Skip to content

Commit a98b35e

Browse files
authored
Merge pull request #250 from nanotaboada/ci/add-docker-buildx-cache
ci: add Docker Buildx cache to container workflow
2 parents f80c527 + 74d0bfa commit a98b35e

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

.github/workflows/maven.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,6 @@
33

44
name: Java CI
55

6-
permissions:
7-
contents: read
8-
96
on:
107
push:
118
branches: [master]
@@ -18,6 +15,8 @@ env:
1815
jobs:
1916
verify:
2017
runs-on: ubuntu-latest
18+
permissions:
19+
contents: read
2120
steps:
2221
- name: Checkout repository
2322
uses: actions/checkout@v6.0.1
@@ -41,6 +40,8 @@ jobs:
4140
coverage:
4241
needs: verify
4342
runs-on: ubuntu-latest
43+
permissions:
44+
contents: read
4445
strategy:
4546
matrix:
4647
service: [codecov, codacy]
@@ -97,6 +98,8 @@ jobs:
9798
push: true
9899
platforms: linux/amd64
99100
provenance: false
101+
cache-from: type=gha
102+
cache-to: type=gha,mode=max
100103
tags: |
101104
ghcr.io/${{ github.repository }}:latest
102105
ghcr.io/${{ github.repository }}:sha-${{ github.sha }}

0 commit comments

Comments
 (0)