Skip to content

Commit

Permalink
chore: bump actions/setup-go and improve usage of docker/metadata-action
Browse files Browse the repository at this point in the history
  • Loading branch information
aofei committed Dec 25, 2023
1 parent e73f89b commit 89f857b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
11 changes: 5 additions & 6 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
with:
fetch-depth: 0
- name: Set up Go
uses: actions/setup-go@v4
uses: actions/setup-go@v5
with:
go-version: 1.21.x
- name: Run GoReleaser
Expand All @@ -33,17 +33,16 @@ jobs:
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Prepare Docker image build metadata
id: prepare-docker-image-build-metadata
uses: docker/metadata-action@v5
with:
images: ghcr.io/${{github.repository_owner}}/goproxy
flavor: latest=false
tags: |
type=sha
type=semver,pattern={{version}}
type=semver,pattern={{major}}.{{minor}}
type=semver,pattern={{major}}
type=raw,value=latest
type=sha
flavor: latest=false
- name: Log in to GitHub Container Registry
uses: docker/login-action@v3
with:
Expand All @@ -63,5 +62,5 @@ jobs:
linux/ppc64le
linux/s390x
push: true
tags: ${{steps.prepare-docker-image-build-metadata.outputs.tags}}
labels: ${{steps.prepare-docker-image-build-metadata.outputs.labels}}
tags: ${{env.DOCKER_METADATA_OUTPUT_TAGS}}
labels: ${{env.DOCKER_METADATA_OUTPUT_LABELS}}
2 changes: 1 addition & 1 deletion .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
- name: Check out code
uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v4
uses: actions/setup-go@v5
with:
go-version: ${{matrix.go}}
- name: Download Go modules
Expand Down

0 comments on commit 89f857b

Please sign in to comment.