-
Notifications
You must be signed in to change notification settings - Fork 280
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
202 additions
and
166 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
name: 'Push manifests' | ||
description: 'Push manifest lists' | ||
inputs: | ||
images: | ||
description: 'Push base image manifests' | ||
required: false | ||
default: 'true' | ||
chapters: | ||
description: 'Build chapter image manifests' | ||
required: false | ||
default: 'false' | ||
filter: | ||
description: 'Filter manifests to push' | ||
required: false | ||
default: '' | ||
runs: | ||
using: "composite" | ||
steps: | ||
- name: Push manifest lists | ||
working-directory: build | ||
shell: pwsh | ||
run: | | ||
./push-manifests.ps1 | ||
env: | ||
BUILD_IMAGES: ${{ inputs.images }} | ||
BUILD_CHAPTERS: ${{ inputs.chapters }} | ||
FILTER: ${{ inputs.filter }} |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,139 @@ | ||
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' | ||
|
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains 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
Oops, something went wrong.