diff --git a/.github/workflows/ci-master-pr.yml b/.github/workflows/ci-master-pr.yml index 7c865e8..a19f254 100644 --- a/.github/workflows/ci-master-pr.yml +++ b/.github/workflows/ci-master-pr.yml @@ -94,7 +94,7 @@ jobs: uses: docker/build-push-action@v2 with: context: ${{ steps.prep.outputs.CONTEXT }} - platforms: linux/386,linux/amd64,linux/arm,linux/arm64,linux/s390x + platforms: linux/386,linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64,linux/s390x push: false tags: | ${{ github.repository }}:${{ steps.prep.outputs.VARIANT_TAG_WITH_REF }} @@ -109,7 +109,7 @@ jobs: uses: docker/build-push-action@v2 with: context: ${{ steps.prep.outputs.CONTEXT }} - platforms: linux/386,linux/amd64,linux/arm,linux/arm64,linux/s390x + platforms: linux/386,linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64,linux/s390x push: true tags: | ${{ github.repository }}:${{ steps.prep.outputs.VARIANT_TAG_WITH_REF }} @@ -124,7 +124,7 @@ jobs: uses: docker/build-push-action@v2 with: context: ${{ steps.prep.outputs.CONTEXT }} - platforms: linux/386,linux/amd64,linux/arm,linux/arm64,linux/s390x + platforms: linux/386,linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64,linux/s390x push: true tags: | ${{ github.repository }}:${{ steps.prep.outputs.VARIANT_TAG }} @@ -225,7 +225,7 @@ jobs: uses: docker/build-push-action@v2 with: context: ${{ steps.prep.outputs.CONTEXT }} - platforms: linux/386,linux/amd64,linux/arm,linux/arm64,linux/s390x + platforms: linux/386,linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64,linux/s390x push: false tags: | ${{ github.repository }}:${{ steps.prep.outputs.VARIANT_TAG_WITH_REF }} @@ -240,7 +240,7 @@ jobs: uses: docker/build-push-action@v2 with: context: ${{ steps.prep.outputs.CONTEXT }} - platforms: linux/386,linux/amd64,linux/arm,linux/arm64,linux/s390x + platforms: linux/386,linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64,linux/s390x push: true tags: | ${{ github.repository }}:${{ steps.prep.outputs.VARIANT_TAG_WITH_REF }} @@ -255,7 +255,7 @@ jobs: uses: docker/build-push-action@v2 with: context: ${{ steps.prep.outputs.CONTEXT }} - platforms: linux/386,linux/amd64,linux/arm,linux/arm64,linux/s390x + platforms: linux/386,linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64,linux/s390x push: true tags: | ${{ github.repository }}:${{ steps.prep.outputs.VARIANT_TAG }} @@ -355,7 +355,7 @@ jobs: uses: docker/build-push-action@v2 with: context: ${{ steps.prep.outputs.CONTEXT }} - platforms: linux/386,linux/amd64,linux/arm,linux/arm64,linux/s390x + platforms: linux/386,linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64,linux/s390x push: false tags: | ${{ github.repository }}:${{ steps.prep.outputs.VARIANT_TAG_WITH_REF }} @@ -370,7 +370,7 @@ jobs: uses: docker/build-push-action@v2 with: context: ${{ steps.prep.outputs.CONTEXT }} - platforms: linux/386,linux/amd64,linux/arm,linux/arm64,linux/s390x + platforms: linux/386,linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64,linux/s390x push: true tags: | ${{ github.repository }}:${{ steps.prep.outputs.VARIANT_TAG_WITH_REF }} @@ -385,7 +385,7 @@ jobs: uses: docker/build-push-action@v2 with: context: ${{ steps.prep.outputs.CONTEXT }} - platforms: linux/386,linux/amd64,linux/arm,linux/arm64,linux/s390x + platforms: linux/386,linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64,linux/s390x push: true tags: | ${{ github.repository }}:${{ steps.prep.outputs.VARIANT_TAG }} @@ -485,7 +485,7 @@ jobs: uses: docker/build-push-action@v2 with: context: ${{ steps.prep.outputs.CONTEXT }} - platforms: linux/386,linux/amd64,linux/arm,linux/arm64,linux/s390x + platforms: linux/386,linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64,linux/s390x push: false tags: | ${{ github.repository }}:${{ steps.prep.outputs.VARIANT_TAG_WITH_REF }} @@ -500,7 +500,7 @@ jobs: uses: docker/build-push-action@v2 with: context: ${{ steps.prep.outputs.CONTEXT }} - platforms: linux/386,linux/amd64,linux/arm,linux/arm64,linux/s390x + platforms: linux/386,linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64,linux/s390x push: true tags: | ${{ github.repository }}:${{ steps.prep.outputs.VARIANT_TAG_WITH_REF }} @@ -515,7 +515,7 @@ jobs: uses: docker/build-push-action@v2 with: context: ${{ steps.prep.outputs.CONTEXT }} - platforms: linux/386,linux/amd64,linux/arm,linux/arm64,linux/s390x + platforms: linux/386,linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64,linux/s390x push: true tags: | ${{ github.repository }}:${{ steps.prep.outputs.VARIANT_TAG }} @@ -615,7 +615,7 @@ jobs: uses: docker/build-push-action@v2 with: context: ${{ steps.prep.outputs.CONTEXT }} - platforms: linux/386,linux/amd64,linux/arm,linux/arm64,linux/s390x + platforms: linux/386,linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64,linux/s390x push: false tags: | ${{ github.repository }}:${{ steps.prep.outputs.VARIANT_TAG_WITH_REF }} @@ -630,7 +630,7 @@ jobs: uses: docker/build-push-action@v2 with: context: ${{ steps.prep.outputs.CONTEXT }} - platforms: linux/386,linux/amd64,linux/arm,linux/arm64,linux/s390x + platforms: linux/386,linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64,linux/s390x push: true tags: | ${{ github.repository }}:${{ steps.prep.outputs.VARIANT_TAG_WITH_REF }} @@ -645,7 +645,7 @@ jobs: uses: docker/build-push-action@v2 with: context: ${{ steps.prep.outputs.CONTEXT }} - platforms: linux/386,linux/amd64,linux/arm,linux/arm64,linux/s390x + platforms: linux/386,linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64,linux/s390x push: true tags: | ${{ github.repository }}:${{ steps.prep.outputs.VARIANT_TAG }} @@ -745,7 +745,7 @@ jobs: uses: docker/build-push-action@v2 with: context: ${{ steps.prep.outputs.CONTEXT }} - platforms: linux/386,linux/amd64,linux/arm,linux/arm64,linux/s390x + platforms: linux/386,linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64,linux/s390x push: false tags: | ${{ github.repository }}:${{ steps.prep.outputs.VARIANT_TAG_WITH_REF }} @@ -760,7 +760,7 @@ jobs: uses: docker/build-push-action@v2 with: context: ${{ steps.prep.outputs.CONTEXT }} - platforms: linux/386,linux/amd64,linux/arm,linux/arm64,linux/s390x + platforms: linux/386,linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64,linux/s390x push: true tags: | ${{ github.repository }}:${{ steps.prep.outputs.VARIANT_TAG_WITH_REF }} @@ -775,7 +775,7 @@ jobs: uses: docker/build-push-action@v2 with: context: ${{ steps.prep.outputs.CONTEXT }} - platforms: linux/386,linux/amd64,linux/arm,linux/arm64,linux/s390x + platforms: linux/386,linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64,linux/s390x push: true tags: | ${{ github.repository }}:${{ steps.prep.outputs.VARIANT_TAG }} @@ -875,7 +875,7 @@ jobs: uses: docker/build-push-action@v2 with: context: ${{ steps.prep.outputs.CONTEXT }} - platforms: linux/386,linux/amd64,linux/arm,linux/arm64,linux/s390x + platforms: linux/386,linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64,linux/s390x push: false tags: | ${{ github.repository }}:${{ steps.prep.outputs.VARIANT_TAG_WITH_REF }} @@ -890,7 +890,7 @@ jobs: uses: docker/build-push-action@v2 with: context: ${{ steps.prep.outputs.CONTEXT }} - platforms: linux/386,linux/amd64,linux/arm,linux/arm64,linux/s390x + platforms: linux/386,linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64,linux/s390x push: true tags: | ${{ github.repository }}:${{ steps.prep.outputs.VARIANT_TAG_WITH_REF }} @@ -905,7 +905,7 @@ jobs: uses: docker/build-push-action@v2 with: context: ${{ steps.prep.outputs.CONTEXT }} - platforms: linux/386,linux/amd64,linux/arm,linux/arm64,linux/s390x + platforms: linux/386,linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64,linux/s390x push: true tags: | ${{ github.repository }}:${{ steps.prep.outputs.VARIANT_TAG }} @@ -1005,7 +1005,7 @@ jobs: uses: docker/build-push-action@v2 with: context: ${{ steps.prep.outputs.CONTEXT }} - platforms: linux/386,linux/amd64,linux/arm,linux/arm64,linux/s390x + platforms: linux/386,linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64,linux/s390x push: false tags: | ${{ github.repository }}:${{ steps.prep.outputs.VARIANT_TAG_WITH_REF }} @@ -1020,7 +1020,7 @@ jobs: uses: docker/build-push-action@v2 with: context: ${{ steps.prep.outputs.CONTEXT }} - platforms: linux/386,linux/amd64,linux/arm,linux/arm64,linux/s390x + platforms: linux/386,linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64,linux/s390x push: true tags: | ${{ github.repository }}:${{ steps.prep.outputs.VARIANT_TAG_WITH_REF }} @@ -1035,7 +1035,7 @@ jobs: uses: docker/build-push-action@v2 with: context: ${{ steps.prep.outputs.CONTEXT }} - platforms: linux/386,linux/amd64,linux/arm,linux/arm64,linux/s390x + platforms: linux/386,linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64,linux/s390x push: true tags: | ${{ github.repository }}:${{ steps.prep.outputs.VARIANT_TAG }} diff --git a/generate/definitions/VARIANTS.ps1 b/generate/definitions/VARIANTS.ps1 index 3fededc..af72b7b 100644 --- a/generate/definitions/VARIANTS.ps1 +++ b/generate/definitions/VARIANTS.ps1 @@ -112,6 +112,15 @@ $VARIANTS = @( package_version_semver = "v$( $variant['package_version'] )" -replace '-r\d+', '' # E.g. Strip out the '-r' in '2.3.0.0-r1' distro = $variant['distro'] distro_version = $variant['distro_version'] + platforms = & { + if ($variant['distro'] -eq 'alpine') { + if ($variant['distro_version'] -in @( '3.3', '3.4', '3.5' ) ) { + 'linux/amd64' + }else { + 'linux/386,linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64,linux/s390x' + } + } + } components = $subVariant['components'] } # Docker image tag. E.g. 'v2.3.0-alpine-3.6' diff --git a/generate/templates/.github/workflows/ci-master-pr.yml.ps1 b/generate/templates/.github/workflows/ci-master-pr.yml.ps1 index 1ac0a22..417262a 100644 --- a/generate/templates/.github/workflows/ci-master-pr.yml.ps1 +++ b/generate/templates/.github/workflows/ci-master-pr.yml.ps1 @@ -107,7 +107,7 @@ $VARIANTS | % { uses: docker/build-push-action@v2 with: context: `${{ steps.prep.outputs.CONTEXT }} - platforms: $( if ($_['_metadata']['distro'] -eq 'alpine' -and $_['_metadata']['distro_version'] -in @( '3.3', '3.4', '3.5' ) ) { 'linux/amd64' } else { 'linux/386,linux/amd64,linux/arm,linux/arm64,linux/s390x' } ) + platforms: $( $_['_metadata']['platforms'] -join ',' ) push: false tags: | `${{ github.repository }}:`${{ steps.prep.outputs.VARIANT_TAG_WITH_REF }} @@ -122,7 +122,7 @@ $VARIANTS | % { uses: docker/build-push-action@v2 with: context: `${{ steps.prep.outputs.CONTEXT }} - platforms: $( if ($_['_metadata']['distro'] -eq 'alpine' -and $_['_metadata']['distro_version'] -in @( '3.3', '3.4', '3.5' ) ) { 'linux/amd64' } else { 'linux/386,linux/amd64,linux/arm,linux/arm64,linux/s390x' } ) + platforms: $( $_['_metadata']['platforms'] -join ',' ) push: true tags: | `${{ github.repository }}:`${{ steps.prep.outputs.VARIANT_TAG_WITH_REF }} @@ -137,7 +137,7 @@ $VARIANTS | % { uses: docker/build-push-action@v2 with: context: `${{ steps.prep.outputs.CONTEXT }} - platforms: $( if ($_['_metadata']['distro'] -eq 'alpine' -and $_['_metadata']['distro_version'] -in @( '3.3', '3.4', '3.5' ) ) { 'linux/amd64' } else { 'linux/386,linux/amd64,linux/arm,linux/arm64,linux/s390x' } ) + platforms: $( $_['_metadata']['platforms'] -join ',' ) push: true tags: | `${{ github.repository }}:`${{ steps.prep.outputs.VARIANT_TAG }}