Skip to content

Commit

Permalink
Update Github Actions deps.
Browse files Browse the repository at this point in the history
  • Loading branch information
Baliedge committed Apr 22, 2024
1 parent 115cca6 commit 527dda6
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/build_and_push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,41 +14,41 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout the repo
uses: actions/checkout@v3
uses: actions/checkout@v4
# Create a build container which buildx will use as a driver when building the container.
# See https://github.com/docker/buildx/blob/master/docs/reference/buildx_create.md#driver
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
uses: docker/setup-buildx-action@v3
with:
# Enables host networking which allows tests run by buildx to access
# the containers started by docker compose on localhost
driver-opts: network=host
# Login to the registry
- name: Login to GitHub Container Registry
uses: docker/login-action@v2
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.PKG_WRITER_PAT }}
# This creates a cache for the current PR, if none exists then
# the cache from the most recent PR will be used.
- name: Setup Docker layer Cache
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: /tmp/.buildx-cache
key: ${{ runner.os }}-docker-${{ github.event.number }}
restore-keys: ${{ runner.os }}-docker-
# Automagically extract useful information from the current github context and creates
# a set of labels for use by build-push-action to be attached to the final image.
- name: Extract Metadata for Docker
uses: docker/metadata-action@v4
uses: docker/metadata-action@v5
with:
images: ${{ github.repository }}
id: meta
# This action runs Buildx, which allows for a more complex Dockerfile.
# We use a buildx Dockerfile to run tests as well as build the final image.
- name: Build and push
uses: docker/build-push-action@v2
uses: docker/build-push-action@v5
with:
# We change the path context here since the github context does not include
# changes to local files, like when we download `Dockerfile`.
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/test_on_push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,22 +16,22 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@master
uses: actions/checkout@v4

- name: Set up Go
uses: actions/setup-go@v2
uses: actions/setup-go@v5
with:
go-version: 1.17
go-version: 1.22

- name: Login to GitHub Container Registry
uses: docker/login-action@v2
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.PKG_WRITER_PAT }}

- name: Cache deps
uses: actions/cache@v2
uses: actions/cache@v4
with:
path: ~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
Expand Down

0 comments on commit 527dda6

Please sign in to comment.