Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/workflows/manual-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ jobs:
- prepare
strategy:
fail-fast: false
max-parallel: 1
matrix:
project: ${{ fromJson(needs.prepare.outputs.matrix) }}
with:
Expand Down
97 changes: 30 additions & 67 deletions .github/workflows/nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,73 +12,36 @@ on:
- cron: '0 1 * * 0' # every sunday at 1am

jobs:
buildx:
uses: ./.github/workflows/.release.yml
with:
name: buildx
envs: |
NIGHTLY_BUILD=1
secrets: inherit

compose:
uses: ./.github/workflows/.release.yml
needs: buildx
with:
name: compose
envs: |
NIGHTLY_BUILD=1
secrets: inherit

containerd:
uses: ./.github/workflows/.release.yml
needs: compose
with:
name: containerd
envs: |
NIGHTLY_BUILD=1
secrets: inherit

credential-helpers:
uses: ./.github/workflows/.release.yml
needs: containerd
with:
name: credential-helpers
envs: |
NIGHTLY_BUILD=1
secrets: inherit

docker-cli:
uses: ./.github/workflows/.release.yml
needs: credential-helpers
with:
name: docker-cli
envs: |
NIGHTLY_BUILD=1
secrets: inherit

docker-engine:
uses: ./.github/workflows/.release.yml
needs: docker-cli
with:
name: docker-engine
envs: |
NIGHTLY_BUILD=1
secrets: inherit

sbom:
uses: ./.github/workflows/.release.yml
needs: docker-engine
with:
name: sbom
envs: |
NIGHTLY_BUILD=1
secrets: inherit

scan:
uses: ./.github/workflows/.release.yml
needs: sbom
with:
name: scan
prepare:
runs-on: ubuntu-20.04
outputs:
matrix: ${{ steps.projects.outputs.matrix }}
steps:
-
name: Checkout
uses: actions/checkout@v3
-
name: Create matrix
id: projects
run: |
projects=$(find ./pkg -maxdepth 1 -type d -printf '%P ' | jq -cR 'split(" ")')
echo "matrix=$projects" >>${GITHUB_OUTPUT}
-
name: Show matrix
run: |
echo ${{ steps.projects.outputs.matrix }}

build:
uses: ./.github/workflows/.release.yml
needs:
- prepare
strategy:
fail-fast: false
max-parallel: 1
matrix:
project: ${{ fromJson(needs.prepare.outputs.matrix) }}
with:
name: ${{ matrix.project }}
envs: |
NIGHTLY_BUILD=1
secrets: inherit