From eb7bc0e1ebe6c7976e8e280674ffa227d5c05e5d Mon Sep 17 00:00:00 2001 From: Jacob Payne Date: Thu, 11 Aug 2022 14:28:18 -0700 Subject: [PATCH] added arm platform builds --- .github/workflows/publish.yaml | 5 ++++- .github/workflows/pull_request.yaml | 5 ++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml index 92bd80c..1f20d33 100644 --- a/.github/workflows/publish.yaml +++ b/.github/workflows/publish.yaml @@ -20,6 +20,9 @@ jobs: - v1.23.9+k3s1 - v1.22.11+k3s2 - v1.21.14+k3s1 + platform: + - linux/amd64 + - linux/arm64 env: REGISTRY: quay.io REGISTRY_USER: ${{ secrets.QUAY_USERNAME }} @@ -33,6 +36,6 @@ jobs: - run: echo $REGISTRY_PASSWORD | docker login -u $REGISTRY_USER --password-stdin $REGISTRY - run: env | grep ACTIONS_ID_TOKEN_REQUEST > .env - run: env | grep REGISTRY >> .env - - run: earthly --ci --push +docker --K3S_VERSION=${{ matrix.k3s-version }} --BASE_IMAGE=${{ matrix.base-image }} + - run: earthly --ci --push --platform=${{ matrix.platform }} +docker --K3S_VERSION=${{ matrix.k3s-version }} --BASE_IMAGE=${{ matrix.base-image }} - run: earthly --ci +cosign --K3S_VERSION=${{ matrix.k3s-version }} --BASE_IMAGE=${{ matrix.base-image }} diff --git a/.github/workflows/pull_request.yaml b/.github/workflows/pull_request.yaml index c11b369..9ed684d 100644 --- a/.github/workflows/pull_request.yaml +++ b/.github/workflows/pull_request.yaml @@ -33,10 +33,13 @@ jobs: - v1.23.9+k3s1 - v1.22.11+k3s2 - v1.21.14+k3s1 + platform: + - linux/amd64 + - linux/arm64 steps: - uses: actions/checkout@v2 - uses: docker-practice/actions-setup-docker@master - uses: earthly/actions-setup@v1 with: version: "latest" - - run: earthly --ci +docker --K3S_VERSION=${{ matrix.k3s-version }} --BASE_IMAGE=${{ matrix.base-image }} \ No newline at end of file + - run: earthly --ci --platform=${{ matrix.platform }} +docker --K3S_VERSION=${{ matrix.k3s-version }} --BASE_IMAGE=${{ matrix.base-image }} \ No newline at end of file