File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -15,10 +15,28 @@ jobs:
1515 uses : crazy-max/ghaction-docker-buildx@v1
1616 with :
1717 version : latest
18+ - name : Go Build Cache for Docker
19+ uses : actions/cache@v4
20+ with :
21+ path : go-build-cache
22+ key : ${{ runner.os }}-go-build-cache-${{ hashFiles('**/go.sum') }}
23+
24+ - name : inject go-build-cache into docker
25+ uses : reproducible-containers/buildkit-cache-dance@4b2444fec0c0fb9dbf175a96c094720a692ef810 # v2.1.4
26+ with :
27+ cache-source : go-build-cache
1828 - name : login to docker hub
1929 run : echo "${{ secrets.DOCKER_PASSWORD }}" | docker login -u "${{ secrets.DOCKER_USERNAME }}" --password-stdin
20- - name : build the image
21- run : |
22- docker buildx build \
23- --tag nexusuw/mokintoken:latest --push \
24- --platform linux/amd64,linux/arm/v7,linux/arm64 .
30+ # - name: build the image
31+ # run: |
32+ # docker buildx build \
33+ # --tag nexusuw/mokintoken:latest --push \
34+ # --platform linux/amd64,linux/arm/v7,linux/arm64 .
35+ - name : Build and push
36+ uses : docker/build-push-action@v6
37+ with :
38+ cache-from : type=gha
39+ cache-to : type=gha,mode=max
40+ push : ${{ github.event_name != 'pull_request' }}
41+ tags : nexusuw/mokintoken:latest
42+ platforms : linux/amd64,linux/arm64
You can’t perform that action at this time.
0 commit comments