Skip to content

Commit 58a62e2

Browse files
committed
ci: update Actions versions
1 parent eddeb86 commit 58a62e2

File tree

3 files changed

+13
-13
lines changed

3 files changed

+13
-13
lines changed

.github/workflows/assets.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,15 +15,15 @@ jobs:
1515
with:
1616
fetch-depth: 1
1717

18-
- uses: actions/setup-go@v2
18+
- uses: actions/setup-go@v3
1919
with:
2020
go-version: '1.18'
2121

2222
- name: Build release assets
2323
run: make release
2424

2525
- name: Upload release assets
26-
uses: alexellis/upload-assets@0.3.0
26+
uses: alexellis/upload-assets@0.4.0
2727
env:
2828
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2929
with:

.github/workflows/dockerhub.yml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ jobs:
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 }}
@@ -91,7 +91,7 @@ jobs:
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 }}

.github/workflows/tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
with:
2525
fetch-depth: 0
2626

27-
- uses: actions/setup-go@v2
27+
- uses: actions/setup-go@v3
2828
with:
2929
go-version: '1.18'
3030

0 commit comments

Comments
 (0)