Centralize build #1
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Build | |
| on: | |
| push: | |
| branches: | |
| - "2e" | |
| paths: | |
| - "images/**" | |
| - "build/**" | |
| - ".github/workflows/build.yaml" | |
| jobs: | |
| images-linux-amd64: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Registry login | |
| uses: docker/login-action@v3 | |
| with: | |
| username: ${{ secrets.DOCKER_HUB_USERNAME }} | |
| password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }} | |
| - uses: actions/checkout@master | |
| - uses: ./.github/actions/build | |
| - uses: ./.github/actions/build | |
| with: | |
| images: 'false' | |
| chapters: 'true' | |
| images-windows-ltsc2019: | |
| runs-on: windows-2019 | |
| steps: | |
| - name: Docker Hub login | |
| shell: pwsh | |
| run: | | |
| docker login -u $env:USER -p $env:TOKEN | |
| env: | |
| USER: ${{ secrets.DOCKER_HUB_USERNAME }} | |
| TOKEN: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }} | |
| - name: Checkout | |
| uses: actions/checkout@master | |
| - name: Build Git Windows image | |
| uses: ./.github/actions/build | |
| with: | |
| filter: 'git-windows' | |
| - name: Build base images | |
| uses: ./.github/actions/build | |
| - name: Build chapter images | |
| uses: ./.github/actions/build | |
| with: | |
| images: 'false' | |
| chapters: 'true' | |
| images-windows-ltsc2022: | |
| runs-on: windows-2022 | |
| steps: | |
| - name: Docker Hub login | |
| shell: pwsh | |
| run: | | |
| docker login -u $env:USER -p $env:TOKEN | |
| env: | |
| USER: ${{ secrets.DOCKER_HUB_USERNAME }} | |
| TOKEN: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }} | |
| - name: Checkout | |
| uses: actions/checkout@master | |
| - name: Build Git Windows image | |
| uses: ./.github/actions/build | |
| with: | |
| filter: 'git-windows' | |
| - name: Build base images | |
| uses: ./.github/actions/build | |
| - name: Build chapter images | |
| uses: ./.github/actions/build | |
| with: | |
| images: 'false' | |
| chapters: 'true' | |
| images-windows-ltsc2025: | |
| runs-on: windows-2025 | |
| steps: | |
| - name: Docker Hub login | |
| shell: pwsh | |
| run: | | |
| docker login -u $env:USER -p $env:TOKEN | |
| env: | |
| USER: ${{ secrets.DOCKER_HUB_USERNAME }} | |
| TOKEN: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }} | |
| - name: Checkout | |
| uses: actions/checkout@master | |
| - name: Build Git Windows image | |
| uses: ./.github/actions/build | |
| with: | |
| filter: 'git-windows' | |
| - name: Build base images | |
| uses: ./.github/actions/build | |
| - name: Build chapter images | |
| uses: ./.github/actions/build | |
| with: | |
| images: 'false' | |
| chapters: 'true' | |
| push-manifests: | |
| if: ${{ always() }} | |
| needs: | |
| - images-linux-amd64 | |
| - images-windows-ltsc2019 | |
| - images-windows-ltsc2022 | |
| - images-windows-ltsc2025 | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@master | |
| - name: Push base image manifests | |
| uses: ./.github/actions/push-manifests | |
| - name: Push chapter image manifests | |
| uses: ./.github/actions/push-manifests | |
| with: | |
| images: 'false' | |
| chapters: 'true' | |