diff options
Diffstat (limited to '.github')
-rw-r--r-- | .github/actions/container_build/action.yml | 2 | ||||
-rw-r--r-- | .github/actions/manifest_build/action.yml | 25 | ||||
-rw-r--r-- | .github/workflows/build.yml | 30 |
3 files changed, 55 insertions, 2 deletions
diff --git a/.github/actions/container_build/action.yml b/.github/actions/container_build/action.yml index fc2b9b9..56584ee 100644 --- a/.github/actions/container_build/action.yml +++ b/.github/actions/container_build/action.yml @@ -45,6 +45,4 @@ runs: github.ref_name == 'master' && github.repository_owner == 'gentoo' && (github.event_name == 'schedule' || github.event_name == 'push') shell: bash - env: - DOCKER_CLI_EXPERIMENTAL: enabled run: ./deploy.sh diff --git a/.github/actions/manifest_build/action.yml b/.github/actions/manifest_build/action.yml new file mode 100644 index 0000000..e1b7829 --- /dev/null +++ b/.github/actions/manifest_build/action.yml @@ -0,0 +1,25 @@ +--- +name: Build manifest +inputs: + target: + required: true + dockerhub_username: + required: true + dockerhub_password: + required: true +runs: + using: composite + steps: + - name: Set up TARGET + run: echo "TARGET=${{ inputs.target }}" | tee $GITHUB_ENV + shell: bash + - name: Login to DockerHub + uses: docker/login-action@v2 + with: + username: ${{ inputs.dockerhub_username }} + password: ${{ inputs.dockerhub_password }} + - name: Push manifests + shell: bash + env: + DOCKER_CLI_EXPERIMENTAL: enabled + run: ./deploy-manifests.sh 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 }} |