3737 - name : Get Docker tags for Alpine based image
3838 if : ${{ matrix.base == 'alpine' }}
3939 id : docker_meta_alpine
40- uses : docker/metadata-action@v3
40+ uses : docker/metadata-action@v4
4141 with :
4242 images : |
4343 ghcr.io/nginx-proxy/docker-gen
@@ -46,15 +46,15 @@ jobs:
4646 tags : |
4747 type=semver,pattern={{version}}
4848 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 }}
5050 labels : |
5151 org.opencontainers.image.authors=Nicolas Duchon <[email protected] > (@buchdag), Jason Wilder 5252 org.opencontainers.image.version=${{ env.GIT_DESCRIBE }}
5353
5454 - name : Get Docker tags for Debian based image
5555 if : ${{ matrix.base == 'debian' }}
5656 id : docker_meta_debian
57- uses : docker/metadata-action@v3
57+ uses : docker/metadata-action@v4
5858 with :
5959 images : |
6060 ghcr.io/nginx-proxy/docker-gen
@@ -63,26 +63,26 @@ jobs:
6363 tags : |
6464 type=semver,suffix=-debian,pattern={{version}}
6565 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 }}
6767 labels : |
6868 org.opencontainers.image.authors=Nicolas Duchon <[email protected] > (@buchdag), Jason Wilder 6969 org.opencontainers.image.version=${{ env.GIT_DESCRIBE }}
7070 flavor : latest=false
7171
7272 - name : Set up QEMU
73- uses : docker/setup-qemu-action@v1
73+ uses : docker/setup-qemu-action@v2
7474
7575 - name : Set up Docker Buildx
76- uses : docker/setup-buildx-action@v1
76+ uses : docker/setup-buildx-action@v2
7777
7878 - name : Login to DockerHub
79- uses : docker/login-action@v1
79+ uses : docker/login-action@v2
8080 with :
8181 username : ${{ secrets.DOCKERHUB_USERNAME }}
8282 password : ${{ secrets.DOCKERHUB_TOKEN }}
8383
8484 - name : Log in to GitHub Container Registry
85- uses : docker/login-action@v1
85+ uses : docker/login-action@v2
8686 with :
8787 registry : ghcr.io
8888 username : ${{ github.actor }}
9191 - name : Build and push the Alpine based image
9292 if : ${{ matrix.base == 'alpine' }}
9393 id : docker_build_alpine
94- uses : docker/build-push-action@v2
94+ uses : docker/build-push-action@v3
9595 with :
9696 context : .
9797 build-args : DOCKER_GEN_VERSION=${{ env.GIT_DESCRIBE }}
@@ -103,7 +103,7 @@ jobs:
103103 - name : Build and push the Debian based image
104104 if : ${{ matrix.base == 'debian' }}
105105 id : docker_build_debian
106- uses : docker/build-push-action@v2
106+ uses : docker/build-push-action@v3
107107 with :
108108 context : .
109109 build-args : DOCKER_GEN_VERSION=${{ env.GIT_DESCRIBE }}
0 commit comments