Skip to content

Commit

Permalink
ci: use matrix.arch in docker-publish-harvester-cluster-repo
Browse files Browse the repository at this point in the history
Yet another subtle little inconsistency between this repo and the
main harvester repo :-/

Fixes: 1b3ea7c
Signed-off-by: Tim Serong <[email protected]>
  • Loading branch information
tserong authored and bk201 committed Aug 14, 2024
1 parent c7b29b6 commit d3cd1ad
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,11 +42,6 @@ jobs:
- name: Declare branch
run: |
echo "branch=${GITHUB_HEAD_REF:-${GITHUB_REF#refs/heads/}}" >> "$GITHUB_ENV"
if [ "${{ matrix.arch }}" == "x64" ]; then
echo "arch=amd64" >> "$GITHUB_ENV"
else
echo "arch=arm64" >> "$GITHUB_ENV"
fi
- name: Read Secrets
if: ${{ startsWith(github.ref, 'refs/heads/') }}
Expand All @@ -71,8 +66,8 @@ jobs:
with:
context: dist/harvester-cluster-repo
push: true
platforms: linux/${{ env.arch }}
tags: rancher/harvester-cluster-repo:${{ env.branch }}-head-${{ env.arch }}
platforms: linux/${{ matrix.arch }}
tags: rancher/harvester-cluster-repo:${{ env.branch }}-head-${{ matrix.arch }}
file: dist/harvester-cluster-repo/Dockerfile

- name: Login to Google Cloud
Expand Down

0 comments on commit d3cd1ad

Please sign in to comment.