Skip to content

Commit

Permalink
ci: bump Go and actions versions
Browse files Browse the repository at this point in the history
  • Loading branch information
ryboe committed Nov 23, 2023
1 parent b22f054 commit 1ba8fd5
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,19 +10,19 @@ jobs:
strategy:
matrix:
go-version:
- "1.19"
- "1.20"
- "1.21"
steps:
- name: Set up Docker buildx
uses: docker/setup-buildx-action@v2
uses: docker/setup-buildx-action@v3
- name: Log in to GHCR
uses: docker/login-action@v2
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ github.token }}
- name: Build image
uses: docker/build-push-action@v3
uses: docker/build-push-action@v5
with:
build-args: |
GO_VERSION=${{ matrix.go-version }}
Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,28 +9,28 @@ on:
- main

env:
LATEST_GO_VERSION: "1.20"
LATEST_GO_VERSION: "1.21"

jobs:
build_and_upload_image:
runs-on: ubuntu-latest
strategy:
matrix:
go-version:
- "1.19"
- "1.20"
- "1.21"
steps:
- name: Set up Docker buildx
uses: docker/setup-buildx-action@v2
uses: docker/setup-buildx-action@v3
- name: Log in to GHCR
uses: docker/login-action@v2
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ github.token }}
- name: Build and Push Image
if: ${{ matrix.go-version != env.LATEST_GO_VERSION }}
uses: docker/build-push-action@v4
uses: docker/build-push-action@v5
with:
build-args: |
GO_VERSION=${{ matrix.go-version }}
Expand All @@ -45,7 +45,7 @@ jobs:
cache-to: type=gha,mode=max
- name: Build and Push 'latest' Image
if: ${{ matrix.go-version == env.LATEST_GO_VERSION }}
uses: docker/build-push-action@v4
uses: docker/build-push-action@v5
with:
build-args: |
GO_VERSION=${{ matrix.go-version }}
Expand Down

0 comments on commit 1ba8fd5

Please sign in to comment.