Skip to content

Commit d2b5e9d

Browse files
authored
fix: release workflow fixes (#459) (#460)
Signed-off-by: Andrea Mazzotti <andrea.mazzotti@suse.com>
1 parent 4e02687 commit d2b5e9d

3 files changed

Lines changed: 16 additions & 23 deletions

File tree

.github/workflows/release.yaml

Lines changed: 5 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ on:
77

88
env:
99
TAG: ${{ github.ref_name }}
10-
IMAGE_NAME: cluster-api-addon-provider-fleet
10+
IMAGE: cluster-api-addon-provider-fleet
1111
REPOSITORY_OWNER: ${{ github.repository_owner }}
1212
REGISTRY: ghcr.io
1313

@@ -21,24 +21,17 @@ jobs:
2121
# - OIDC for cosign's use in ecm-distro-tools/publish-image
2222
# - Publish image to ghcr.io
2323
id-token: write
24-
strategy:
25-
matrix:
26-
include:
27-
- platform: linux/amd64
28-
tag-suffix: "linux-amd64"
29-
- platform: linux/arm64
30-
tag-suffix: "linux-arm64"
3124
steps:
3225
- name: Checkout
3326
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
3427
with:
3528
fetch-depth: 0
3629
- name: Push image to ghcr.io
37-
uses: rancher/ecm-distro-tools/actions/publish-image@067de5ae5517b661b4d2f10e22cc5a21aa0ac915
30+
uses: rancher/ecm-distro-tools/actions/publish-image@da9f5b6e258c327660eeab3db97952b612f1cf9f # v0.69.3
3831
with:
39-
image: ${{ env.IMAGE_NAME }}
40-
tag: ${{ env.TAG }}-${{ matrix.tag-suffix }}
41-
platforms: ${{ matrix.platform }}
32+
image: ${{ env.IMAGE }}
33+
tag: ${{ env.TAG }}
34+
platforms: linux/amd64,linux/arm64
4235
push-to-public: true
4336
push-to-prime: false
4437
public-registry: ${{ env.REGISTRY }}

Dockerfile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
# renovate: datasource=github-release-attachments depName=rust-lang/rustup
22
ARG RUSTUP_VERSION=1.29.0
33
# renovate: datasource=github-release-attachments depName=rust-lang/rustup digestVersion=1.29.0
4-
ARG RUSTUP_SUM_arm64=9732d6c5e2a098d3521fca8145d826ae0aaa067ef2385ead08e6feac88fa5792
4+
ARG RUSTUP_SUM_arm64=88761caacddb92cd79b0b1f939f3990ba1997d701a38b3e8dd6746a562f2a759
55
# renovate: datasource=github-release-attachments depName=rust-lang/rustup digestVersion=1.29.0
6-
ARG RUSTUP_SUM_amd64=4acc9acc76d5079515b46346a485974457b5a79893cfb01112423c89aeb5aa10
6+
ARG RUSTUP_SUM_amd64=9cd3fda5fd293890e36ab271af6a786ee22084b5f6c2b83fd8323cec6f0992c1
77

88
FROM --platform=${BUILDPLATFORM} ghcr.io/cross-rs/aarch64-unknown-linux-musl:0.2.5 AS build-arm64
99
ARG BUILDPLATFORM
@@ -12,7 +12,7 @@ ARG RUSTUP_VERSION
1212
ARG RUSTUP_SUM_arm64
1313

1414
RUN curl --proto '=https' --tlsv1.2 -sSfL -o /tmp/rustup-init \
15-
"https://static.rust-lang.org/rustup/archive/${RUSTUP_VERSION}/aarch64-unknown-linux-gnu/rustup-init" && \
15+
"https://static.rust-lang.org/rustup/archive/${RUSTUP_VERSION}/aarch64-unknown-linux-musl/rustup-init" && \
1616
echo "${RUSTUP_SUM_arm64} /tmp/rustup-init" | sha256sum -c - && \
1717
chmod +x /tmp/rustup-init && \
1818
/tmp/rustup-init -y --target aarch64-unknown-linux-musl --default-toolchain stable && \
@@ -37,7 +37,7 @@ ARG RUSTUP_VERSION
3737
ARG RUSTUP_SUM_amd64
3838

3939
RUN curl --proto '=https' --tlsv1.2 -sSfL -o /tmp/rustup-init \
40-
"https://static.rust-lang.org/rustup/archive/${RUSTUP_VERSION}/x86_64-unknown-linux-gnu/rustup-init" && \
40+
"https://static.rust-lang.org/rustup/archive/${RUSTUP_VERSION}/x86_64-unknown-linux-musl/rustup-init" && \
4141
echo "${RUSTUP_SUM_amd64} /tmp/rustup-init" | sha256sum -c - && \
4242
chmod +x /tmp/rustup-init && \
4343
/tmp/rustup-init -y --target x86_64-unknown-linux-musl --default-toolchain stable && \

Makefile

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@ IMAGE_NAME ?= $(REPO)/$(IMAGE):$(TAG)
77

88
.PHONY: push-image
99
push-image:
10-
docker buildx build \
11-
$(IID_FILE_FLAG) \
12-
$(BUILDX_ARGS) \
13-
--platform=$(TARGET_PLATFORMS) \
14-
--tag $(IMAGE_NAME) \
15-
--push \
16-
.
10+
docker buildx build \
11+
$(IID_FILE_FLAG) \
12+
$(BUILDX_ARGS) \
13+
--platform=$(TARGET_PLATFORMS) \
14+
--tag $(IMAGE_NAME) \
15+
--push \
16+
.

0 commit comments

Comments
 (0)