Skip to content

Commit e76db1c

Browse files
committed
Use latest actions in publish workflow
1 parent 938cb32 commit e76db1c

File tree

1 file changed

+9
-8
lines changed

1 file changed

+9
-8
lines changed

.github/workflows/publish.yml

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,14 @@ jobs:
1111
publish:
1212
runs-on: ubuntu-latest
1313
steps:
14-
- uses: actions/checkout@v3
14+
- uses: actions/checkout@v4
1515

1616
- name: Set up QEMU
17-
uses: docker/setup-qemu-action@v2
17+
uses: docker/setup-qemu-action@v3
1818

1919
- name: Set up Docker Buildx
2020
id: buildx
21-
uses: docker/setup-buildx-action@v2
21+
uses: docker/setup-buildx-action@v3
2222

2323
- name: Inspect builder
2424
run: |
@@ -29,32 +29,33 @@ jobs:
2929
echo "Platforms: ${{ steps.buildx.outputs.platforms }}"
3030
3131
- name: Log in to Docker Hub
32-
uses: docker/login-action@v2
32+
uses: docker/login-action@v3
3333
with:
3434
username: ${{ secrets.DOCKER_HUB_USERNAME }}
3535
password: ${{ secrets.DOCKER_HUB_TOKEN }}
3636

3737
- name: Log in to GitHub Container registry
38-
uses: docker/login-action@v2
38+
uses: docker/login-action@v3
3939
with:
4040
registry: ghcr.io
4141
username: ${{ github.actor }}
4242
password: ${{ secrets.GITHUB_TOKEN }}
4343

4444
- name: Docker metadata
4545
id: meta
46-
uses: docker/metadata-action@v4
46+
uses: docker/metadata-action@v5
4747
with:
4848
images: |
4949
mendhak/http-https-echo
5050
ghcr.io/mendhak/http-https-echo
5151
5252
- name: Build and push image
53-
uses: docker/build-push-action@v4
53+
uses: docker/build-push-action@v5
5454
with:
5555
context: .
5656
platforms: linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64/v8,linux/ppc64le
5757
push: true
5858
tags: ${{ steps.meta.outputs.tags }}
5959
labels: ${{ steps.meta.outputs.labels }}
60-
output: type=image,name=target,annotation-index.org.opencontainers.image.description=Docker image that echoes request data as JSON, listens on HTTP/S, with various extra features, useful for debugging.
60+
cache-from: type=gha
61+
cache-to: type=gha,mode=max

0 commit comments

Comments
 (0)