Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[docker/24.0 backport] cherry-picks #160

Merged
merged 26 commits into from
Aug 6, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
a119623
distro: add fedora 38
crazy-max May 27, 2023
aa3da63
dockerfiles: update to stable frontend
crazy-max May 29, 2023
26c78ad
disable s390x releases
crazy-max Aug 3, 2023
24d51ae
common: ubuntu 18.04 eol
crazy-max Aug 4, 2023
49ff2f7
pkg(buildx): update debhelper compat to 12 and set override_dh_dwz
crazy-max Aug 4, 2023
b52480d
pkg(compose): update debhelper compat to 12 and set override_dh_dwz
crazy-max Aug 4, 2023
3186ac5
pkg(containerd): update debhelper compat to 12 and set override_dh_dwz
crazy-max Aug 4, 2023
e900ff1
pkg(credential-helpers): update debhelper compat to 12 and set overri…
crazy-max Aug 4, 2023
4c21f4f
pkg(docker-cli): update debhelper compat to 12 and set override_dh_dwz
crazy-max Aug 4, 2023
34576e9
pkg(docker-engine): update debhelper compat to 12 and set override_dh…
crazy-max Aug 4, 2023
1eaa54c
pkg(sbom): update debhelper compat to 12 and set override_dh_dwz
crazy-max Aug 4, 2023
b5ff6d6
common: ubuntu 22.10 eol
crazy-max Aug 5, 2023
298de62
common: fedora 36 eol
crazy-max Aug 5, 2023
935d0a4
ci: add manual-build workflow
crazy-max Aug 5, 2023
c7be36d
ci: fail-fast input for build workflows
crazy-max Aug 5, 2023
762b5b9
ci: disable fail-fast in manual-build workflow
crazy-max Aug 5, 2023
4358242
ci: fix misplaced fail-fast attr
crazy-max Aug 5, 2023
0021d61
ci: fix manual-build workflow
crazy-max Aug 5, 2023
71fbfbe
ci: fix missing fail-fast handling in release workflow
crazy-max Aug 5, 2023
8b4a557
rpm: set nobest flag for dnf builddep command
crazy-max Aug 5, 2023
a53f07e
ci: set max-parallel to 1 for release builds
crazy-max Aug 5, 2023
1203851
ci: use build reusable workflow in manual-build
crazy-max Aug 5, 2023
90cceee
ci: fix fail-fast
crazy-max Aug 5, 2023
e257490
ci: fix release workflow
crazy-max Aug 5, 2023
e85126e
ci: fix nightly workflow
crazy-max Aug 6, 2023
aefeb36
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