Skip to content

Commit

Permalink
set go version
Browse files Browse the repository at this point in the history
  • Loading branch information
cam-schultz committed Feb 9, 2024
1 parent fc59837 commit 1b0557a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,10 @@ jobs:
env:
MACOS_SDK_FNAME: MacOSX12.3.sdk.tar.xz
MACOS_SDK_CHECKSUM: 3abd261ceb483c44295a6623fdffe5d44fc4ac2c872526576ec5ab5ad0f6e26c
- name: Set Go version
run: |
source ./scripts/versions.sh
echo GO_VERSION=$GO_VERSION >> $GITHUB_ENV
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v2
with:
Expand All @@ -52,3 +56,4 @@ jobs:
# https://docs.github.com/en/actions/security-guides/automatic-token-authentication#about-the-github_token-secret
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
DOCKERFILE: ./Dockerfile
GO_VERSION: ${{ env.GO_VERSION }}
2 changes: 2 additions & 0 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,13 +34,15 @@ dockers:
build_flag_templates:
- "--pull"
- "--platform=linux/amd64"
- "--build-arg=GO_VERSION={{.Env.GO_VERSION}}"
- image_templates:
- 'avaplatform/awm-relayer:{{ .Tag }}-arm64'
dockerfile: "{{ .Env.DOCKERFILE }}"
use: buildx
build_flag_templates:
- "--pull"
- "--platform=linux/arm64"
- "--build-arg=GO_VERSION={{.Env.GO_VERSION}}"
goarch: arm64
docker_manifests:
- name_template: 'avaplatform/awm-relayer:{{ .Tag }}'
Expand Down

0 comments on commit 1b0557a

Please sign in to comment.