Skip to content

Commit a4dc7ca

Browse files
committed
Update GitHub Actions workflow to use latest Docker actions
1 parent 352a108 commit a4dc7ca

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

.github/workflows/gh-mirror.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -23,34 +23,34 @@ jobs:
2323

2424
steps:
2525
- name: Checkout repository
26-
uses: actions/checkout@v2
26+
uses: actions/checkout@v3
2727

2828
- name: Install QEMU static binaries
29-
uses: docker/setup-qemu-action@v1
29+
uses: docker/setup-qemu-action@v2
3030

3131
- name: Set up Docker Buildx
3232
id: buildx
33-
uses: docker/setup-buildx-action@v1
33+
uses: docker/setup-buildx-action@v2
3434

3535
- name: Log in to the Container registry
36-
uses: docker/login-action@v1
36+
uses: docker/login-action@v2
3737
with:
3838
registry: ${{ env.REGISTRY }}
3939
username: ${{ github.actor }}
4040
password: ${{ secrets.GHCR_TOKEN }}
4141

4242
- name: Extract metadata (tags, labels) for Docker
4343
id: mirror
44-
uses: docker/metadata-action@v3
44+
uses: docker/metadata-action@v4
4545
with:
4646
images: ${{ env.REGISTRY }}/${{ env.MIRROR_IMAGE_NAME }}
4747

4848
- name: Build and push Docker image
49-
uses: docker/build-push-action@v2
49+
uses: docker/build-push-action@v3
5050
with:
5151
context: .
5252
file: docker/mirror/Dockerfile
5353
push: true
5454
platforms: linux/amd64,linux/arm64
5555
tags: ${{ steps.mirror.outputs.tags }}
56-
labels: ${{ steps.mirror.outputs.labels }}
56+
labels: ${{ steps.mirror.outputs.labels }}

0 commit comments

Comments
 (0)