Skip to content

Commit

Permalink
[release-1.29] Fix release workflow (#7126)
Browse files Browse the repository at this point in the history
Signed-off-by: Brooks Newberry <brooks@newberry.com>
  • Loading branch information
brooksn authored Oct 24, 2024
1 parent dc7d980 commit a6a7262
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 3 deletions.
12 changes: 12 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,9 @@ jobs:
- name: Publish Image Runtime
uses: rancher/ecm-distro-tools/actions/publish-image@master
env:
GOARCH: amd64
GOOS: linux
with:
image: "rke2-runtime"
tag: ${{ github.ref_name }}
Expand All @@ -77,6 +80,9 @@ jobs:

- name: Publish Image Runtime (Windows)
uses: rancher/ecm-distro-tools/actions/publish-image@master
env:
GOARCH: amd64
GOOS: linux
with:
image: "rke2-runtime"
tag: ${{ github.ref_name }}
Expand Down Expand Up @@ -144,6 +150,9 @@ jobs:
- name: Publish Image Runtime
uses: rancher/ecm-distro-tools/actions/publish-image@master
env:
GOARCH: arm64
GOOS: linux
with:
image: "rke2-runtime"
tag: ${{ github.ref_name }}
Expand Down Expand Up @@ -191,6 +200,9 @@ jobs:
- name: Manifest
uses: rancher/ecm-distro-tools/actions/publish-image@master
env:
GOARCH: amd64
GOOS: linux
with:
image: "rke2-runtime"
tag: ${{ github.ref_name }}
Expand Down
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -52,11 +52,11 @@ build-image-runtime: ## Build the runtime image
./scripts/build-image-runtime

.PHONY: publish-image-runtime
publish-image-runtime: build-image-runtime
publish-image-runtime:
./scripts/publish-image-runtime

.PHONY: publish-image-runtime-windows
publish-image-runtime: build-image-runtime
publish-image-runtime-windows:
./scripts/publish-image-runtime-windows

.PHONY: validate
Expand Down
2 changes: 1 addition & 1 deletion scripts/version.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ K3S_PKG=github.com/k3s-io/k3s
RKE2_PKG=github.com/rancher/rke2
GO=${GO-go}
GOARCH=${GOARCH:-$("${GO}" env GOARCH)}
ARCH=${ARCH:-$("${GO}" env GOARCH)}
ARCH=${ARCH:-"${GOARCH}"}
GOOS=${GOOS:-$("${GO}" env GOOS)}
if [ -z "$GOOS" ]; then
if [ "${OS}" == "Windows_NT" ]; then
Expand Down

0 comments on commit a6a7262

Please sign in to comment.