-
Notifications
You must be signed in to change notification settings - Fork 11
group ezbake builds based on legacy/modern OS #127
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
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -17,7 +17,7 @@ on: | |
| type: string | ||
| required: false | ||
| ezbake-ver: | ||
| description: 'The version specified in project.clj in the given ezbake-ref. Will default to the version found in project.clj in the repo if not specified.' | ||
| description: 'Version for the ezbake 2 build group used for older OSes.' | ||
| type: string | ||
| required: false | ||
| branch: | ||
|
|
@@ -39,7 +39,7 @@ env: | |
|
|
||
| jobs: | ||
| build: | ||
| runs-on: ubuntu-24.04 | ||
| runs-on: ubuntu-26.04 | ||
| timeout-minutes: 600 | ||
| strategy: | ||
| fail-fast: false | ||
|
|
@@ -55,7 +55,7 @@ jobs: | |
| uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 | ||
| with: | ||
| repository: OpenVoxProject/shared-actions | ||
| ref: main | ||
| ref: ezbake4 # rename to main before merge | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. ezbake4 in ezbake2 build again? |
||
| path: .shared-actions | ||
| sparse-checkout: platforms.json | ||
| sparse-checkout-cone-mode: false | ||
|
|
@@ -65,7 +65,16 @@ jobs: | |
| RPM_PLATFORMS: ${{ inputs.rpm_platform_list }} | ||
| BRANCH: ${{ inputs.branch }} | ||
| run: | | ||
| echo "RPM_PLATFORMS=${RPM_PLATFORMS:-$(jq -r --arg branch "${BRANCH}" '.[$branch]."ezbake-fips-rpm" | join(",")' .shared-actions/platforms.json)}" >> $GITHUB_ENV | ||
| EZBAKE_VERSION="${EZBAKE_VER:-$(jq -r --arg branch "${BRANCH}" '.[$branch]."ezbake2-version"' .shared-actions/platforms.json)}" | ||
|
|
||
| echo "EZBAKE_BRANCH=${{ inputs.ezbake-ref }}" >> $GITHUB_ENV | ||
| echo "EZBAKE_VERSION=${EZBAKE_VERSION}" >> $GITHUB_ENV | ||
| RPM_PLATFORMS="${RPM_PLATFORMS:-$(jq -r --arg branch "${BRANCH}" '.[$branch]."ezbake-fips-rpm" | join(",")' .shared-actions/platforms.json)}" | ||
| echo "RPM_PLATFORMS=$RPM_PLATFORMS" >> $GITHUB_ENV | ||
|
|
||
| echo "::notice title=ezbake 2 EZBAKE_BRANCH::${{ inputs.ezbake-ref }}" | ||
| echo "::notice title=ezbake 2 EZBAKE_VERSION::$EZBAKE_VERSION" | ||
| echo "::notice title=ezbake 2 PLATFORMS::$RPM_PLATFORMS" | ||
|
|
||
| - name: Install Ruby | ||
| uses: ruby/setup-ruby@95ef2b042f9d7a56d8268cba8559e2842e2ad01b # v1.321.0 | ||
|
|
@@ -77,7 +86,7 @@ jobs: | |
| uses: actions/cache/restore@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0 | ||
| with: | ||
| path: /tmp/ezbake-builder.tar | ||
| key: docker-ezbake-${{ hashFiles('Dockerfile') }} | ||
| key: docker-ezbake-${{ hashFiles('Dockerfile') }}-legacy # same key as in non-fips ezbake 2 | ||
|
|
||
| - name: Load or build Docker image | ||
| run: | | ||
|
|
@@ -92,18 +101,12 @@ jobs: | |
| if: always() && steps.docker-cache.outputs.cache-hit != 'true' | ||
| with: | ||
| path: /tmp/ezbake-builder.tar | ||
| key: docker-ezbake-${{ hashFiles('Dockerfile') }} | ||
| key: docker-ezbake-${{ hashFiles('Dockerfile') }}-legacy | ||
|
|
||
| - name: Update awscli | ||
| run: | | ||
| python -m pip install --upgrade awscli | ||
|
|
||
| - name: Set EZBAKE_VERSION if provided | ||
| if: ${{ inputs.ezbake-ver != '' }} | ||
| env: | ||
| EZBAKE_VER: ${{ inputs.ezbake-ver }} | ||
| run: echo "EZBAKE_VERSION=${EZBAKE_VER}" >> $GITHUB_ENV | ||
|
|
||
| - name: Run build script | ||
| env: | ||
| BUILD_REF: ${{ inputs.ref }} | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,5 +1,7 @@ | ||
| { | ||
| "main": { | ||
| "ezbake2-version": "2.9.1", | ||
| "ezbake4-version": "4.0.0", | ||
| "vanagon": [ | ||
| "amazon-2023-aarch64", | ||
| "amazon-2023-x86_64", | ||
|
|
@@ -35,20 +37,24 @@ | |
| "ubuntu-26.04-armhf", | ||
| "windows-msys2-x64" | ||
| ], | ||
| "ezbake-deb": [ | ||
| "ubuntu-22.04", | ||
| "ezbake2-deb": [ | ||
| "ubuntu-22.04" | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. why only 22 here? in 8.x you also du 24 and 26?
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. only ubuntu 22.04 is built with ezbake 2. ubuntu 24.04 and newer are built with ezbake 4 (see the |
||
| ], | ||
| "ezbake2-rpm": [ | ||
| "amazon-2023", | ||
| "el-8", | ||
| "sles-15" | ||
| ], | ||
| "ezbake4-deb": [ | ||
| "ubuntu-24.04", | ||
| "ubuntu-26.04", | ||
| "debian-13" | ||
| ], | ||
| "ezbake-rpm": [ | ||
| "amazon-2023", | ||
| "el-8", | ||
| "ezbake4-rpm": [ | ||
| "el-9", | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I added el-9 here. systemd 252 in EL9 too old, but it was backported: https://redhat.atlassian.net/browse/RHEL-6090 . We need to verify this for the various EL9 distros (and amazon 2023?) |
||
| "el-10", | ||
| "fedora-43", | ||
| "fedora-44", | ||
| "sles-15", | ||
| "sles-16" | ||
| ], | ||
| "ezbake-fips-rpm": [ | ||
|
|
@@ -57,6 +63,8 @@ | |
| ] | ||
| }, | ||
| "8.x": { | ||
| "ezbake2-version": "2.9.1", | ||
| "ezbake4-version": "4.0.0", | ||
| "vanagon": [ | ||
| "amazon-2-aarch64", | ||
| "amazon-2-x86_64", | ||
|
|
@@ -102,16 +110,16 @@ | |
| "ubuntu-26.04-armhf", | ||
| "windows-all-x64" | ||
| ], | ||
| "ezbake-deb": [ | ||
| "ezbake2-deb": [ | ||
| "ubuntu-22.04", | ||
| "ubuntu-24.04", | ||
| "ubuntu-25.04", | ||
| "ubuntu-26.04", | ||
| "debian-11", | ||
| "debian-12", | ||
| "ubuntu-26.04", | ||
| "debian-13" | ||
| ], | ||
| "ezbake-rpm": [ | ||
| "ezbake2-rpm": [ | ||
| "amazon-2", | ||
| "amazon-2023", | ||
| "el-8", | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ezbake-2 is using ezbake4 branch?