Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
33 commits
Select commit Hold shift + click to select a range
b7e8873
pkg(docker-cli): add arm/v5 platform
crazy-max Jan 20, 2023
902fbd1
pkg(docker-engine): add arm/v5 platform
crazy-max Jan 20, 2023
5ee54f8
pkg(docker-cli): split darwin static stage
crazy-max Jan 21, 2023
825ae90
pkg(buildx): arm/v5 platform support
crazy-max Jan 21, 2023
fa575da
pkg(compose): arm/v5 platform support
crazy-max Jan 21, 2023
255bb43
pkg(containerd): arm/v5 platform support
crazy-max Jan 21, 2023
7fa7923
pkg(credential-helpers): arm/v5 platform support
crazy-max Jan 21, 2023
3f16844
distro: add fedora 38
crazy-max May 27, 2023
e8cfaef
dockerfiles: update to stable frontend
crazy-max May 29, 2023
8e077c7
disable s390x releases
crazy-max Aug 3, 2023
144be34
common: ubuntu 18.04 eol
crazy-max Aug 4, 2023
d391feb
pkg(buildx): update debhelper compat to 12 and set override_dh_dwz
crazy-max Aug 4, 2023
1868e32
pkg(compose): update debhelper compat to 12 and set override_dh_dwz
crazy-max Aug 4, 2023
918514b
pkg(containerd): update debhelper compat to 12 and set override_dh_dwz
crazy-max Aug 4, 2023
cb98b74
pkg(credential-helpers): update debhelper compat to 12 and set overri…
crazy-max Aug 4, 2023
d778dc6
pkg(docker-cli): update debhelper compat to 12 and set override_dh_dwz
crazy-max Aug 4, 2023
2825d23
pkg(docker-engine): update debhelper compat to 12 and set override_dh…
crazy-max Aug 4, 2023
6f0e04f
pkg(sbom): update debhelper compat to 12 and set override_dh_dwz
crazy-max Aug 4, 2023
3af536d
common: ubuntu 22.10 eol
crazy-max Aug 5, 2023
0cb2729
common: fedora 36 eol
crazy-max Aug 5, 2023
ee93b5e
ci: add manual-build workflow
crazy-max Aug 5, 2023
9a022b3
ci: fail-fast input for build workflows
crazy-max Aug 5, 2023
76dd802
ci: disable fail-fast in manual-build workflow
crazy-max Aug 5, 2023
add24e0
ci: fix misplaced fail-fast attr
crazy-max Aug 5, 2023
00e572c
ci: fix manual-build workflow
crazy-max Aug 5, 2023
906bce5
ci: fix missing fail-fast handling in release workflow
crazy-max Aug 5, 2023
39f9ff0
rpm: set nobest flag for dnf builddep command
crazy-max Aug 5, 2023
04852a3
ci: set max-parallel to 1 for release builds
crazy-max Aug 5, 2023
ebdd83e
ci: use build reusable workflow in manual-build
crazy-max Aug 5, 2023
61fba53
ci: fix fail-fast
crazy-max Aug 5, 2023
a201c8b
ci: fix release workflow
crazy-max Aug 5, 2023
d269405
ci: fix nightly workflow
crazy-max Aug 6, 2023
44ee7cd
common: rpm-builddep
crazy-max Aug 6, 2023
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
24 changes: 16 additions & 8 deletions .github/workflows/.build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,34 +19,42 @@ jobs:
prepare:
runs-on: ubuntu-20.04
outputs:
matrix: ${{ steps.pkgs.outputs.matrix }}
pkgs: ${{ steps.set.outputs.pkgs }}
fail-fast: ${{ steps.set.outputs.fail-fast }}
steps:
-
name: Checkout
uses: actions/checkout@v3
-
name: Create matrix
id: pkgs
name: Set outputs
id: set
run: |
ghamatrix=$GHA_DEFAULT_MATRIX
if [ "${{ github.event_name }}" = "workflow_dispatch" ]; then
ghamatrix=${{ inputs.pkgs }}
fi
pkgs=$(make gha-matrix GHA_MATRIX=$ghamatrix)
echo "matrix=$pkgs" >> $GITHUB_OUTPUT
echo "pkgs=$pkgs" >> $GITHUB_OUTPUT
if [ "${{ inputs.fail-fast }}" != "" ]; then
failfast=${{ inputs.fail-fast }}
else
failfast=true
fi
echo "fail-fast=$failfast" >> $GITHUB_OUTPUT
-
name: Show matrix
name: Show outputs
run: |
echo ${{ steps.pkgs.outputs.matrix }}
echo pkgs=${{ steps.set.outputs.pkgs }}
echo fail-fast=${{ steps.set.outputs.fail-fast }}

build:
runs-on: ubuntu-20.04
needs:
- prepare
strategy:
fail-fast: false
fail-fast: ${{ needs.prepare.outputs.fail-fast == 'true' }}
matrix:
pkg: ${{ fromJson(needs.prepare.outputs.matrix) }}
pkg: ${{ fromJson(needs.prepare.outputs.pkgs) }}
steps:
-
name: Checkout
Expand Down
26 changes: 13 additions & 13 deletions .github/workflows/.release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,21 +22,21 @@ jobs:
prepare:
runs-on: ubuntu-20.04
outputs:
matrix: ${{ steps.pkgs.outputs.matrix }}
pkgs: ${{ steps.set.outputs.pkgs }}
steps:
-
name: Checkout
uses: actions/checkout@v3
-
name: Create matrix
id: pkgs
name: Set outputs
id: set
run: |
pkgs=$(make gha-matrix GHA_MATRIX=all)
echo "matrix=$pkgs" >> $GITHUB_OUTPUT
echo "pkgs=$pkgs" >> $GITHUB_OUTPUT
-
name: Show matrix
name: Show outputs
run: |
echo ${{ steps.pkgs.outputs.matrix }}
echo pkgs=${{ steps.set.outputs.pkgs }}

build:
runs-on: ubuntu-20.04
Expand All @@ -45,7 +45,7 @@ jobs:
strategy:
fail-fast: true
matrix:
pkg: ${{ fromJson(needs.prepare.outputs.matrix) }}
pkg: ${{ fromJson(needs.prepare.outputs.pkgs) }}
steps:
-
name: Checkout
Expand Down Expand Up @@ -77,16 +77,16 @@ jobs:
- name: aws_graviton2
endpoint: tcp://${{ secrets.AWS_ARM64_HOST }}:1234
platforms: darwin/arm64,linux/arm64,linux/arm/v5,linux/arm/v6,linux/arm/v7,windows/arm64
- name: linuxone_s390x
endpoint: tcp://${{ secrets.LINUXONE_S390X_HOST }}:1234
platforms: linux/s390x
# - name: linuxone_s390x
# endpoint: tcp://${{ secrets.LINUXONE_S390X_HOST }}:1234
# platforms: linux/s390x
env:
BUILDER_NODE_1_AUTH_TLS_CACERT: ${{ secrets.AWS_ARM64_CACERT }}
BUILDER_NODE_1_AUTH_TLS_CERT: ${{ secrets.AWS_ARM64_CERT }}
BUILDER_NODE_1_AUTH_TLS_KEY: ${{ secrets.AWS_ARM64_KEY }}
BUILDER_NODE_2_AUTH_TLS_CACERT: ${{ secrets.LINUXONE_S390X_CACERT }}
BUILDER_NODE_2_AUTH_TLS_CERT: ${{ secrets.LINUXONE_S390X_CERT }}
BUILDER_NODE_2_AUTH_TLS_KEY: ${{ secrets.LINUXONE_S390X_KEY }}
# BUILDER_NODE_2_AUTH_TLS_CACERT: ${{ secrets.LINUXONE_S390X_CACERT }}
# BUILDER_NODE_2_AUTH_TLS_CERT: ${{ secrets.LINUXONE_S390X_CERT }}
# BUILDER_NODE_2_AUTH_TLS_KEY: ${{ secrets.LINUXONE_S390X_KEY }}
-
name: Build
run: |
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/build-buildx.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,11 @@ on:
default: 'minimal'
required: false
type: string
fail-fast:
description: 'Fail fast'
default: true
required: false
type: boolean
push:
branches:
- 'main'
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/build-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,11 @@ on:
default: 'minimal'
required: false
type: string
fail-fast:
description: 'Fail fast'
default: true
required: false
type: boolean
push:
branches:
- 'main'
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/build-containerd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,11 @@ on:
default: 'minimal'
required: false
type: string
fail-fast:
description: 'Fail fast'
default: true
required: false
type: boolean
push:
branches:
- 'main'
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/build-credential-helpers.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,11 @@ on:
default: 'minimal'
required: false
type: string
fail-fast:
description: 'Fail fast'
default: true
required: false
type: boolean
push:
branches:
- 'main'
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/build-docker-cli.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,11 @@ on:
default: 'minimal'
required: false
type: string
fail-fast:
description: 'Fail fast'
default: true
required: false
type: boolean
push:
branches:
- 'main'
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/build-docker-engine.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,11 @@ on:
default: 'minimal'
required: false
type: string
fail-fast:
description: 'Fail fast'
default: true
required: false
type: boolean
push:
branches:
- 'main'
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/build-sbom.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,11 @@ on:
default: 'minimal'
required: false
type: string
fail-fast:
description: 'Fail fast'
default: true
required: false
type: boolean
push:
branches:
- 'main'
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/build-scan.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,11 @@ on:
default: 'minimal'
required: false
type: string
fail-fast:
description: 'Fail fast'
default: true
required: false
type: boolean
push:
branches:
- 'main'
Expand Down
60 changes: 60 additions & 0 deletions .github/workflows/manual-build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
name: manual-build

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

on:
workflow_dispatch:
inputs:
projects:
description: 'Projects to build (all or space separated list)'
default: 'all'
required: false
type: string
pkgs:
description: 'Packages to build (minimal, all or space separated list)'
default: 'minimal'
required: false
type: string
fail-fast:
description: 'Fail fast'
required: false
type: boolean

jobs:
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: |
if [ "${{ inputs.projects }}" = "all" ]; then
projects=$(find ./pkg -maxdepth 1 -type d -printf '%P ')
else
projects="${{ inputs.projects }}"
fi
projects=$(echo $projects | jq -cR 'split(" ")')
echo "matrix=$projects" >>${GITHUB_OUTPUT}
-
name: Show matrix
run: |
echo ${{ steps.projects.outputs.matrix }}

build:
uses: ./.github/workflows/.build.yml
needs:
- prepare
strategy:
fail-fast: false
matrix:
project: ${{ fromJson(needs.prepare.outputs.matrix) }}
with:
name: ${{ matrix.project }}
secrets: inherit
98 changes: 31 additions & 67 deletions .github/workflows/nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,73 +12,37 @@ 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 ')
projects=$(echo $projects | 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
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ include common/packages.mk

GHA_MATRIX ?= minimal
ifeq ($(GHA_MATRIX),minimal)
GHA_RELEASES := debian10 debian11 debian12 ubuntu1804 ubuntu2004 ubuntu2204 ubuntu2304 centos7 centos9 oraclelinux7 fedora37 static
GHA_RELEASES := debian10 debian11 debian12 ubuntu2004 ubuntu2204 ubuntu2304 centos7 centos9 oraclelinux7 fedora37 fedora38 static
else ifeq ($(GHA_MATRIX),all)
GHA_RELEASES := $(PKG_DEB_RELEASES) $(PKG_RPM_RELEASES) static
else
Expand Down
Loading