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

Merge 2 jobs in one and fix references to renamed opensuse-leap family #1969

Merged
merged 1 commit into from
Oct 27, 2023
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
18 changes: 16 additions & 2 deletions .github/workflows/bump_repos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,27 @@ jobs:
packages: utils/earthly
- name: Old packages
run: |
earthly +base-image --VARIANT=standard --FLAVOR=opensuse-leap --K3S_VERSION=latest
earthly +base-image \
--FAMILY=opensuse \
--FLAVOR=opensuse \
--FLAVOR_RELEASE=leap-15.5 \
--VARIANT=standard \
--MODEL=generic \
--BASE_IMAGE=opensuse/leap:15.5 \
--K3S_VERSION=latest
mv build/versions.yaml build/versions.old.yaml
- name: Bump cos 🔧
run: earthly +bump-repositories
- name: New packages
run: |
earthly +base-image --VARIANT=standard --FLAVOR=opensuse-leap --K3S_VERSION=latest
earthly +base-image
--FAMILY=opensuse \
--FLAVOR=opensuse \
--FLAVOR_RELEASE=leap-15.5 \
--VARIANT=standard \
--MODEL=generic \
--BASE_IMAGE=opensuse/leap:15.5 \
--K3S_VERSION=latest
mv build/versions.yaml build/versions.new.yaml
- name: Diff versions and generate pr message
run: .github/repo-diff-msg.sh
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/image-arm-pr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
with:
flavor: opensuse
flavor_release: leap-15.5
family: opensuse-leap
family: opensuse
base_image: opensuse/leap:15.5
model: rpi4
worker: fast
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/image.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ jobs:
variant: core
- flavor: opensuse
flavorRelease: leap-15.5
family: opensuse-leap
family: opensuse
base_image: opensuse/leap:15.5
model: generic
variant: core
Expand All @@ -169,7 +169,7 @@ jobs:
baseImage: alpine:3.18
- flavor: opensuse
flavorRelease: leap-15.5
family: opensuse-leap
family: opensuse
variant: core
model: generic
baseImage: opensuse/leap:15.5
Expand Down Expand Up @@ -211,7 +211,7 @@ jobs:
# flavorRelease: "3.18"
- flavor: opensuse
flavorRelease: leap-15.5
family: opensuse-leap
family: opensuse
encryption:
uses: ./.github/workflows/reusable-encryption-test.yaml
with:
Expand Down Expand Up @@ -249,7 +249,7 @@ jobs:
include:
- flavor: opensuse
flavorRelease: leap-15.5
family: opensuse-leap
family: opensuse
baseImage: opensuse/leap:15.5
- flavor: alpine
flavorRelease: "3.18"
Expand Down Expand Up @@ -301,7 +301,7 @@ jobs:
include:
- flavor: "opensuse"
flavorRelease: "leap-15.5"
family: "opensuse-leap"
family: "opensuse"
# cant do alpine yet as it hasnt been released with the proper name
#- flavor: "alpine"
# flavorRelease: "3.18"
Expand Down
65 changes: 21 additions & 44 deletions .github/workflows/release-arm.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -281,13 +281,24 @@ jobs:
sarif_file: 'sarif'
category: ${{ matrix.flavor }}

build-arm-generic-core:
build-arm-generic:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
flavor:
- "opensuse-leap"
include:
- flavor: opensuse
flavor_release: leap-15.5
family: opensuse
base_image: opensuse/leap:15.5
model: generic
variant: core
- flavor: opensuse
flavor_release: leap-15.5
family: opensuse
base_image: opensuse/leap:15.5
model: generic
variant: standard
steps:
- uses: actions/checkout@v4
with:
Expand All @@ -308,47 +319,13 @@ jobs:
run: echo ${{ secrets.QUAY_PASSWORD }} | docker login -u ${{ secrets.QUAY_USERNAME }} --password-stdin quay.io
- name: Build iso 🔧
run: |
earthly -P +all-arm-generic --VARIANT=core --FLAVOR=${{ matrix.flavor }}
sudo mv build release
- name: Push to quay
if: startsWith(github.ref, 'refs/tags/')
run: |
docker push $(cat release/IMAGE)
- name: Release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
files: |
release/*iso*

build-arm-generic-standard:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
flavor:
- "opensuse-leap"
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Install earthly
uses: Luet-lab/[email protected]
with:
repository: quay.io/kairos/packages
packages: utils/earthly
- name: Set up QEMU
uses: docker/setup-qemu-action@master
with:
platforms: all
- name: Set up Docker Buildx
id: buildx
uses: docker/setup-buildx-action@v3
- name: Login to Quay Registry
run: echo ${{ secrets.QUAY_PASSWORD }} | docker login -u ${{ secrets.QUAY_USERNAME }} --password-stdin quay.io
- name: Build iso 🔧
run: |
earthly -P +all-arm-generic --VARIANT=standard --FLAVOR=${{ matrix.flavor }} --K3S_VERSION=latest
earthly -P +all-arm-generic \
--FLAVOR=${{ matrix.flavor }} \
--FLAVOR_RELEASE=${{ matrix.flavor_release }} \
--FAMILY=${{ matrix.family }} \
--BASE_IMAGE=${{ matrix.base_image}} \
--MODEL=${{ matrix.model }} \
--VARIANT=${{ matrix.variant }}
sudo mv build release
- name: Push to quay
if: startsWith(github.ref, 'refs/tags/')
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/uki.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ jobs:
earthly +iso-uki \
--FLAVOR=opensuse \
--FLAVOR_RELEASE=leap-15.5 \
--FAMILY=opensuse-leap \
--FAMILY=opensuse \
--MODEL=generic \
--VARIANT=core \
--BASE_IMAGE=opensuse/leap:15.5 \
Expand Down
Loading