From ab89576a452a5daade61e25ac3b38349f611c50b Mon Sep 17 00:00:00 2001 From: Albert DeFusco Date: Wed, 19 Jan 2022 22:43:46 -0600 Subject: [PATCH] excludes wouldn't work --- .github/workflows/publish.yml | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 8fe9876..5b831e2 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -10,10 +10,6 @@ jobs: fail-fast: false matrix: base: [ubi7, ubi8, alpine] - platform: [linux/amd64, "linux/amd64,linux/arm64"] - exclude: - - base: ubi7 - platform: "linux/amd64,linux/arm64" steps: - name: Check out the repo uses: actions/checkout@v2 @@ -31,4 +27,11 @@ jobs: run: | docker login --username ${{ secrets.DOCKER_USERNAME }} --password ${{ secrets.DOCKER_PASSWORD }} GIT_TAG=`git describe --tags --abbrev=0` - make ${{ matrix.base }} PLATFORM=${{ matrix.platform }} TAG=latest,$GIT_TAG \ No newline at end of file + + if [ ${{ matrix.base }} == ubi7 ]; then + PLATFORM=linux/amd64 + else + PLATFORM=linux/amd64,linux/arm64 + fi + + make ${{ matrix.base }} PLATFORM=$PLATFORM TAG=latest,$GIT_TAG \ No newline at end of file