aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKonstantinos Smanis <konstantinos.smanis@gmail.com>2024-07-27 12:27:58 +0300
committerJohn Helmert III <ajak@gentoo.org>2024-09-08 15:46:12 -0700
commit99dafa4279156d3064da280c6d3b2f95a788d74d (patch)
treefde1eee43baa924532df58992f9512e7834fb768 /.github/workflows/build.yml
parentFix the example build command (diff)
downloaddocker-images-99dafa4279156d3064da280c6d3b2f95a788d74d.tar.gz
docker-images-99dafa4279156d3064da280c6d3b2f95a788d74d.tar.bz2
docker-images-99dafa4279156d3064da280c6d3b2f95a788d74d.zip
fix: reduce Docker registry pull requests
Circumvent the Docker Hub rate limit triggered by pushing the multiarch manifests after *every* image is built and pushed. Instead, deploy the manifests only after *all* images have been built and pushed. Signed-off-by: Konstantinos Smanis <konstantinos.smanis@gmail.com> Signed-off-by: John Helmert III <ajak@gentoo.org>
Diffstat (limited to '.github/workflows/build.yml')
-rw-r--r--.github/workflows/build.yml30
1 files changed, 30 insertions, 0 deletions
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index d0e22e8..64d0c37 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -11,6 +11,7 @@ env:
jobs:
build:
+ continue-on-error: true
strategy:
fail-fast: false
matrix:
@@ -67,3 +68,32 @@ jobs:
target: ${{ matrix.target }}
dockerhub_username: ${{ secrets.DOCKERHUB_USERNAME }}
dockerhub_password: ${{ secrets.DOCKERHUB_PASSWORD }}
+ build-manifests:
+ if: |
+ github.ref_name == 'master' && github.repository_owner == 'gentoo' &&
+ (github.event_name == 'schedule' || github.event_name == 'push')
+ needs: [build]
+ strategy:
+ fail-fast: false
+ matrix:
+ target:
+ - stage3:latest
+ - stage3:desktop
+ - stage3:hardened
+ - stage3:hardened-nomultilib
+ - stage3:musl
+ - stage3:musl-hardened
+ - stage3:nomultilib
+ - stage3:nomultilib-systemd
+ - stage3:systemd
+ name: ${{ matrix.target }}
+ runs-on: ubuntu-latest
+ steps:
+ - name: Checkout code
+ uses: actions/checkout@v3
+ - name: Build ${{ matrix.target }}
+ uses: ./.github/actions/manifest_build
+ with:
+ target: ${{ matrix.target }}
+ dockerhub_username: ${{ secrets.DOCKERHUB_USERNAME }}
+ dockerhub_password: ${{ secrets.DOCKERHUB_PASSWORD }}