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

gh-actions: Refactor execution container generation GH workflow; Add workflow for Ubuntu Jammy. #321

Merged
merged 22 commits into from
Mar 11, 2024
Merged
Changes from 1 commit
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
f7ae499
Refactor Docker image workflows and add `ubuntu-jammy` Docker image b…
junhaoliao Mar 9, 2024
eef4cbf
Reformat Docker image build workflow YAML files.
junhaoliao Mar 9, 2024
83a29d7
Move YAML files out from `.github/workflow` subdirectories to the dir…
junhaoliao Mar 9, 2024
ba3fefd
Rename YAML files extension to `.yml` for consistency.
junhaoliao Mar 9, 2024
ce1a4f5
Rename GitHub workflow YAML files extension to `.yaml` for consistency.
junhaoliao Mar 9, 2024
27a3c71
Refactor reusable CLP image build workflow to a reusable GitHub Action.
junhaoliao Mar 9, 2024
13dd153
Revert accidental changes in `clp-core-build.yaml`.
junhaoliao Mar 9, 2024
b1109b2
Move env var CONTAINER_IMAGE_REGISTRY to an optional input since GitH…
junhaoliao Mar 9, 2024
10fea7c
Update GitHub actions paths.
junhaoliao Mar 9, 2024
8560e37
Refine GitHub workflow clp-core-build.yaml trigger paths.
junhaoliao Mar 9, 2024
4fc87f0
Refactor GitHub actions for image build process.
junhaoliao Mar 9, 2024
44b2d95
Update github workflow file paths.
junhaoliao Mar 9, 2024
0eef743
Add configurable container registry credentials.
junhaoliao Mar 9, 2024
a61d5e9
Update README.md to add the new Ubuntu Jammy execution environment.
junhaoliao Mar 10, 2024
cd431d0
Refactor execution image workflow and action inputs naming.
junhaoliao Mar 11, 2024
16b8e0b
Refine paths in GitHub workflow filters.
junhaoliao Mar 11, 2024
1a6910e
Separated ubuntu_focal and ubuntu_jammy image build in GitHub workflo…
junhaoliao Mar 11, 2024
1199200
Revert Yoda conditions.
junhaoliao Mar 11, 2024
1108033
Ensure execution image builds need filter-relevant-changes.
junhaoliao Mar 11, 2024
80cf0de
Add step to "Set up Docker Buildx".
junhaoliao Mar 11, 2024
31b86d9
Update blob pattern in clp-execution-image-build workflow file.
junhaoliao Mar 11, 2024
a1aa679
Update blob pattern in `dorny/paths-filter` in clp-execution-image-bu…
junhaoliao Mar 11, 2024
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
Prev Previous commit
Next Next commit
Refactor GitHub actions for image build process.
junhaoliao committed Mar 9, 2024
commit 4fc87f06de80f2bc7f397aab14582f628e760528
11 changes: 0 additions & 11 deletions .github/actions/clp-execution-image-build/action.yaml
Original file line number Diff line number Diff line change
@@ -7,9 +7,6 @@ inputs:
description: "Container Image Registry"
kirkrodrigues marked this conversation as resolved.
Show resolved Hide resolved
required: false
default: "ghcr.io"
dockerfilePath:
description: "Path to the Dockerfile."
required: true
platformId:
description: "Platform ID of the container. e.g., ubuntu."
kirkrodrigues marked this conversation as resolved.
Show resolved Hide resolved
required: true
@@ -21,14 +18,6 @@ inputs:
runs:
using: "composite"
steps:
- uses: "actions/checkout@v3"
with:
submodules: "recursive"

- name: "Workaround actions/runner-images/issues/6775"
shell: "bash"
run: "chown $(id -u):$(id -g) -R ."

- uses: "docker/login-action@v3"
kirkrodrigues marked this conversation as resolved.
Show resolved Hide resolved
with:
registry: "${{inputs.containerImageRegistry}}"
19 changes: 14 additions & 5 deletions .github/workflows/clp-execution-image-ubuntu-focal.yaml
kirkrodrigues marked this conversation as resolved.
Show resolved Hide resolved
Original file line number Diff line number Diff line change
@@ -22,8 +22,17 @@ concurrency:

jobs:
build:
uses: ".github/actions/clp-execution-image-build"
with:
dockerfilePath: "./tools/docker-images/clp-execution-base-ubuntu-focal/Dockerfile"
platformId: "ubuntu"
platformVersionId: "focal"
runs-on: ubuntu-latest
steps:
- uses: "actions/checkout@v3"
with:
submodules: "recursive"

- name: "Workaround actions/runner-images/issues/6775"
shell: "bash"
run: "chown $(id -u):$(id -g) -R ."

- uses: ".github/actions/clp-execution-image-build"
with:
platformId: "ubuntu"
platformVersionId: "focal"
19 changes: 14 additions & 5 deletions .github/workflows/clp-execution-image-ubuntu-jammy.yaml
Original file line number Diff line number Diff line change
@@ -22,8 +22,17 @@ concurrency:

jobs:
build:
uses: ".github/actions/clp-execution-image-build"
with:
dockerfilePath: "./tools/docker-images/clp-execution-base-ubuntu-jammy/Dockerfile"
platformId: "ubuntu"
platformVersionId: "jammy"
runs-on: ubuntu-latest
steps:
- uses: "actions/checkout@v3"
with:
submodules: "recursive"

- name: "Workaround actions/runner-images/issues/6775"
shell: "bash"
run: "chown $(id -u):$(id -g) -R ."

- uses: ".github/actions/clp-execution-image-build"
with:
platformId: "ubuntu"
platformVersionId: "jammy"