Skip to content

Commit 9f9e5b8

Browse files
committed
ci: update Actions versions
1 parent 02d3a37 commit 9f9e5b8

File tree

1 file changed

+14
-14
lines changed

1 file changed

+14
-14
lines changed

.github/workflows/dockerhub.yml

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ jobs:
3232

3333
- name: Get Docker tags for Debian based image
3434
id: docker_meta_debian
35-
uses: docker/metadata-action@v3
35+
uses: docker/metadata-action@v4
3636
with:
3737
images: |
3838
ghcr.io/nginx-proxy/nginx-proxy
@@ -41,33 +41,33 @@ jobs:
4141
tags: |
4242
type=semver,pattern={{version}}
4343
type=semver,pattern={{major}}.{{minor}}
44-
type=raw,value=latest,enable=${{ github.ref == 'refs/heads/main' }}
44+
type=raw,value=latest,enable={{is_default_branch}}
4545
labels: |
4646
org.opencontainers.image.authors=Nicolas Duchon <[email protected]> (@buchdag), Jason Wilder
4747
org.opencontainers.image.version=${{ env.GIT_DESCRIBE }}
4848
4949
- name: Set up QEMU
50-
uses: docker/setup-qemu-action@v1
50+
uses: docker/setup-qemu-action@v2
5151

5252
- name: Set up Docker Buildx
53-
uses: docker/setup-buildx-action@v1
53+
uses: docker/setup-buildx-action@v2
5454

5555
- name: Login to DockerHub
56-
uses: docker/login-action@v1
56+
uses: docker/login-action@v2
5757
with:
5858
username: ${{ secrets.DOCKERHUB_USERNAME }}
5959
password: ${{ secrets.DOCKERHUB_TOKEN }}
6060

6161
- name: Log in to GitHub Container Registry
62-
uses: docker/login-action@v1
62+
uses: docker/login-action@v2
6363
with:
6464
registry: ghcr.io
6565
username: ${{ github.actor }}
6666
password: ${{ secrets.GITHUB_TOKEN }}
6767

6868
- name: Build and push the Debian based image
6969
id: docker_build_debian
70-
uses: docker/build-push-action@v2
70+
uses: docker/build-push-action@v3
7171
with:
7272
context: .
7373
file: Dockerfile
@@ -93,7 +93,7 @@ jobs:
9393

9494
- name: Get Docker tags for Alpine based image
9595
id: docker_meta_alpine
96-
uses: docker/metadata-action@v3
96+
uses: docker/metadata-action@v4
9797
with:
9898
images: |
9999
ghcr.io/nginx-proxy/nginx-proxy
@@ -102,34 +102,34 @@ jobs:
102102
tags: |
103103
type=semver,suffix=-alpine,pattern={{version}}
104104
type=semver,suffix=-alpine,pattern={{major}}.{{minor}}
105-
type=raw,value=alpine,enable=${{ github.ref == 'refs/heads/main' }}
105+
type=raw,value=alpine,enable={{is_default_branch}}
106106
labels: |
107107
org.opencontainers.image.authors=Nicolas Duchon <[email protected]> (@buchdag), Jason Wilder
108108
org.opencontainers.image.version=${{ env.GIT_DESCRIBE }}
109109
flavor: latest=false
110110

111111
- name: Set up QEMU
112-
uses: docker/setup-qemu-action@v1
112+
uses: docker/setup-qemu-action@v2
113113

114114
- name: Set up Docker Buildx
115-
uses: docker/setup-buildx-action@v1
115+
uses: docker/setup-buildx-action@v2
116116

117117
- name: Login to DockerHub
118-
uses: docker/login-action@v1
118+
uses: docker/login-action@v2
119119
with:
120120
username: ${{ secrets.DOCKERHUB_USERNAME }}
121121
password: ${{ secrets.DOCKERHUB_TOKEN }}
122122

123123
- name: Log in to GitHub Container Registry
124-
uses: docker/login-action@v1
124+
uses: docker/login-action@v2
125125
with:
126126
registry: ghcr.io
127127
username: ${{ github.actor }}
128128
password: ${{ secrets.GITHUB_TOKEN }}
129129

130130
- name: Build and push the Alpine based image
131131
id: docker_build_alpine
132-
uses: docker/build-push-action@v2
132+
uses: docker/build-push-action@v3
133133
with:
134134
context: .
135135
file: Dockerfile.alpine

0 commit comments

Comments
 (0)