@@ -54,29 +54,29 @@ jobs:
5454 args : release --rm-dist
5555 env :
5656 GITHUB_TOKEN : ${{ secrets.GH_PAT }}
57- #
58- # - name: Cache Docker layers
59- # uses: actions/cache@v2
60- # with:
61- # path: /tmp/.buildx-cache
62- # key: ${{ runner.os }}-nginx-errors-buildx
63- #
64- # - name: Build and push
65- # uses: docker/build-push-action@v2
66- # with:
67- # context: .
68- # push: true
69- # labels: |
70- # org.label-schema.schema-version=1.0
71- # org.label-schema.version=v${{ github.event.inputs.version }}
72- # org.label-schema.name=nginx-errors
73- # tags: |
74- # vietanhs0817/nginx-errors:v${{ github.event.inputs.version }}
75- # vietanhs0817/nginx-errors:latest
76- # cache-from: type=local,src=/tmp/.buildx-cache
77- # cache-to: type=local,dest=/tmp/.buildx-cache-new
78- #
79- # - name: Move cache
80- # run: |
81- # rm -rf /tmp/.buildx-cache
82- # mv /tmp/.buildx-cache-new /tmp/.buildx-cache
57+
58+ - name : Cache Docker layers
59+ uses : actions/cache@v2
60+ with :
61+ path : /tmp/.buildx-cache
62+ key : ${{ runner.os }}-nginx-errors-buildx
63+
64+ - name : Build and push
65+ uses : docker/build-push-action@v2
66+ with :
67+ context : .
68+ push : true
69+ labels : |
70+ org.label-schema.schema-version=1.0
71+ org.label-schema.version=v${{ github.event.inputs.version }}
72+ org.label-schema.name=nginx-errors
73+ tags : |
74+ vietanhs0817/nginx-errors:v${{ github.event.inputs.version }}
75+ vietanhs0817/nginx-errors:latest
76+ cache-from : type=local,src=/tmp/.buildx-cache
77+ cache-to : type=local,dest=/tmp/.buildx-cache-new
78+
79+ - name : Move cache
80+ run : |
81+ rm -rf /tmp/.buildx-cache
82+ mv /tmp/.buildx-cache-new /tmp/.buildx-cache
0 commit comments