@@ -32,30 +32,29 @@ jobs:
32
32
- name : Checkout repository
33
33
uses : actions/checkout@v2
34
34
35
- # Login against a Docker registry except on PR
36
- # https://github.com/docker/login-action
37
35
- name : Log into registry ${{ env.REGISTRY }}
38
36
if : github.event_name != 'pull_request'
39
- uses : docker/login-action@28218f9b04b4f3f62068d7b6ce6ca5b26e35336c
37
+ uses : docker/login-action@v1
40
38
with :
41
39
registry : ${{ env.REGISTRY }}
42
40
username : ${{ github.actor }}
43
41
password : ${{ secrets.CR_PAT }}
44
42
45
- # Extract metadata (tags, labels) for Docker
46
- # https://github.com/docker/metadata-action
47
43
- name : Extract Docker metadata
48
44
id : meta
49
- uses : docker/metadata-action@98669ae865ea3cffbcbaa878cf57c20bbf1c6c38
45
+ uses : docker/metadata-action@v3
50
46
with :
51
47
images : ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
52
48
53
- # Build and push Docker image with Buildx (don't push on PR)
54
- # https://github.com/docker/build-push-action
49
+ - name : Set up Docker Buildx
50
+ uses : docker/setup-buildx-action@v1
51
+
55
52
- name : Build and push Docker image
56
- uses : docker/build-push-action@ad44023a93711e3deb337508980b4b5e9bcdc5dc
53
+ uses : docker/build-push-action@v2
57
54
with :
58
55
context : .
59
56
push : ${{ github.event_name != 'pull_request' }}
60
57
tags : ${{ steps.meta.outputs.tags }}
61
58
labels : ${{ steps.meta.outputs.labels }}
59
+ cache-from : type=gha
60
+ cache-to : type=gha,mode=max
0 commit comments