37
37
- name : Get Docker tags for Alpine based image
38
38
if : ${{ matrix.base == 'alpine' }}
39
39
id : docker_meta_alpine
40
- uses : docker/metadata-action@v3
40
+ uses : docker/metadata-action@v4
41
41
with :
42
42
images : |
43
43
ghcr.io/nginx-proxy/docker-gen
@@ -46,15 +46,15 @@ jobs:
46
46
tags : |
47
47
type=semver,pattern={{version}}
48
48
type=semver,pattern={{major}}.{{minor}}
49
- type=raw,value=latest,enable=${{ endsWith(github.ref, github.event.repository.default_branch) }}
49
+ type=raw,value=latest,enable={{is_default_branch }}
50
50
labels : |
51
51
org.opencontainers.image.authors=Nicolas Duchon <[email protected] > (@buchdag), Jason Wilder
52
52
org.opencontainers.image.version=${{ env.GIT_DESCRIBE }}
53
53
54
54
- name : Get Docker tags for Debian based image
55
55
if : ${{ matrix.base == 'debian' }}
56
56
id : docker_meta_debian
57
- uses : docker/metadata-action@v3
57
+ uses : docker/metadata-action@v4
58
58
with :
59
59
images : |
60
60
ghcr.io/nginx-proxy/docker-gen
@@ -63,26 +63,26 @@ jobs:
63
63
tags : |
64
64
type=semver,suffix=-debian,pattern={{version}}
65
65
type=semver,suffix=-debian,pattern={{major}}.{{minor}}
66
- type=raw,value=debian,enable=${{ endsWith(github.ref, github.event.repository.default_branch) }}
66
+ type=raw,value=debian,enable={{is_default_branch }}
67
67
labels : |
68
68
org.opencontainers.image.authors=Nicolas Duchon <[email protected] > (@buchdag), Jason Wilder
69
69
org.opencontainers.image.version=${{ env.GIT_DESCRIBE }}
70
70
flavor : latest=false
71
71
72
72
- name : Set up QEMU
73
- uses : docker/setup-qemu-action@v1
73
+ uses : docker/setup-qemu-action@v2
74
74
75
75
- name : Set up Docker Buildx
76
- uses : docker/setup-buildx-action@v1
76
+ uses : docker/setup-buildx-action@v2
77
77
78
78
- name : Login to DockerHub
79
- uses : docker/login-action@v1
79
+ uses : docker/login-action@v2
80
80
with :
81
81
username : ${{ secrets.DOCKERHUB_USERNAME }}
82
82
password : ${{ secrets.DOCKERHUB_TOKEN }}
83
83
84
84
- name : Log in to GitHub Container Registry
85
- uses : docker/login-action@v1
85
+ uses : docker/login-action@v2
86
86
with :
87
87
registry : ghcr.io
88
88
username : ${{ github.actor }}
91
91
- name : Build and push the Alpine based image
92
92
if : ${{ matrix.base == 'alpine' }}
93
93
id : docker_build_alpine
94
- uses : docker/build-push-action@v2
94
+ uses : docker/build-push-action@v3
95
95
with :
96
96
context : .
97
97
build-args : DOCKER_GEN_VERSION=${{ env.GIT_DESCRIBE }}
@@ -103,7 +103,7 @@ jobs:
103
103
- name : Build and push the Debian based image
104
104
if : ${{ matrix.base == 'debian' }}
105
105
id : docker_build_debian
106
- uses : docker/build-push-action@v2
106
+ uses : docker/build-push-action@v3
107
107
with :
108
108
context : .
109
109
build-args : DOCKER_GEN_VERSION=${{ env.GIT_DESCRIBE }}
0 commit comments