Skip to content

Commit 527dda6

Browse files
committed
Update Github Actions deps.
1 parent 115cca6 commit 527dda6

File tree

2 files changed

+11
-11
lines changed

2 files changed

+11
-11
lines changed

.github/workflows/build_and_push.yml

+6-6
Original file line numberDiff line numberDiff line change
@@ -14,41 +14,41 @@ jobs:
1414
runs-on: ubuntu-latest
1515
steps:
1616
- name: Checkout the repo
17-
uses: actions/checkout@v3
17+
uses: actions/checkout@v4
1818
# Create a build container which buildx will use as a driver when building the container.
1919
# See https://github.com/docker/buildx/blob/master/docs/reference/buildx_create.md#driver
2020
- name: Set up Docker Buildx
21-
uses: docker/setup-buildx-action@v2
21+
uses: docker/setup-buildx-action@v3
2222
with:
2323
# Enables host networking which allows tests run by buildx to access
2424
# the containers started by docker compose on localhost
2525
driver-opts: network=host
2626
# Login to the registry
2727
- name: Login to GitHub Container Registry
28-
uses: docker/login-action@v2
28+
uses: docker/login-action@v3
2929
with:
3030
registry: ghcr.io
3131
username: ${{ github.actor }}
3232
password: ${{ secrets.PKG_WRITER_PAT }}
3333
# This creates a cache for the current PR, if none exists then
3434
# the cache from the most recent PR will be used.
3535
- name: Setup Docker layer Cache
36-
uses: actions/cache@v3
36+
uses: actions/cache@v4
3737
with:
3838
path: /tmp/.buildx-cache
3939
key: ${{ runner.os }}-docker-${{ github.event.number }}
4040
restore-keys: ${{ runner.os }}-docker-
4141
# Automagically extract useful information from the current github context and creates
4242
# a set of labels for use by build-push-action to be attached to the final image.
4343
- name: Extract Metadata for Docker
44-
uses: docker/metadata-action@v4
44+
uses: docker/metadata-action@v5
4545
with:
4646
images: ${{ github.repository }}
4747
id: meta
4848
# This action runs Buildx, which allows for a more complex Dockerfile.
4949
# We use a buildx Dockerfile to run tests as well as build the final image.
5050
- name: Build and push
51-
uses: docker/build-push-action@v2
51+
uses: docker/build-push-action@v5
5252
with:
5353
# We change the path context here since the github context does not include
5454
# changes to local files, like when we download `Dockerfile`.

.github/workflows/test_on_push.yml

+5-5
Original file line numberDiff line numberDiff line change
@@ -16,22 +16,22 @@ jobs:
1616
runs-on: ubuntu-latest
1717
steps:
1818
- name: Checkout
19-
uses: actions/checkout@master
19+
uses: actions/checkout@v4
2020

2121
- name: Set up Go
22-
uses: actions/setup-go@v2
22+
uses: actions/setup-go@v5
2323
with:
24-
go-version: 1.17
24+
go-version: 1.22
2525

2626
- name: Login to GitHub Container Registry
27-
uses: docker/login-action@v2
27+
uses: docker/login-action@v3
2828
with:
2929
registry: ghcr.io
3030
username: ${{ github.actor }}
3131
password: ${{ secrets.PKG_WRITER_PAT }}
3232

3333
- name: Cache deps
34-
uses: actions/cache@v2
34+
uses: actions/cache@v4
3535
with:
3636
path: ~/go/pkg/mod
3737
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}

0 commit comments

Comments
 (0)