Skip to content

Commit

Permalink
Update workflows
Browse files Browse the repository at this point in the history
Signed-off-by: David Cassany <dcassany@suse.com>
  • Loading branch information
davidcassany committed Apr 21, 2022
1 parent f21e05c commit 6a209c8
Show file tree
Hide file tree
Showing 11 changed files with 34 additions and 65 deletions.
6 changes: 2 additions & 4 deletions .github/build.yaml.gomplate
Original file line number Diff line number Diff line change
Expand Up @@ -234,13 +234,11 @@
- name: Build ISO from local build 🔧
if: github.event_name != 'schedule' && !startsWith(github.ref, 'refs/tags/')
run: |
source .github/helpers.sh
create_remote_manifest manifest.yaml
sudo -E MAKEISO_ARGS="--output cOS-Seed-{{{ $flavor }}}-${{ env.COS_VERSION }}-{{{ $config.arch }}}" MANIFEST=manifest.yaml.remote make local-iso
sudo -E MAKEISO_ARGS="--name cOS-Seed-{{{ $flavor }}}-${{ env.COS_VERSION }}-{{{ $config.arch }}} --repo ${{ env.FINAL_REPO }}" make local-iso
- name: Build ISO from remote repositories 🔧
if: github.event_name == 'schedule' || startsWith(github.ref, 'refs/tags/')
run: |
sudo -E YQ=/usr/bin/yq MAKEISO_ARGS="--output cOS-Seed-{{{ $flavor }}}-${{ env.COS_VERSION }}-{{{ $config.arch }}}" make iso
sudo -E MAKEISO_ARGS="--name cOS-Seed-{{{ $flavor }}}-${{ env.COS_VERSION }}-{{{ $config.arch }}}" make iso
- uses: actions/upload-artifact@v2
with:
name: cOS-{{{$subset}}}-{{{ $flavor }}}-{{{ $config.arch }}}.iso.zip
Expand Down
4 changes: 2 additions & 2 deletions .github/helpers.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,5 @@ create_remote_manifest() {

drop_recovery() {
MANIFEST=$1
$YQ e -i 'del( .packages.isoimage[] | select(.=="recovery/cos-img") )' $MANIFEST
}
$YQ e -i 'del( .iso.image[] | select(.=="recovery/cos-img") )' $MANIFEST
}
12 changes: 4 additions & 8 deletions .github/workflows/build-master-green-arm64.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -154,13 +154,11 @@ jobs:
- name: Build ISO from local build 🔧
if: github.event_name != 'schedule' && !startsWith(github.ref, 'refs/tags/')
run: |
source .github/helpers.sh
create_remote_manifest manifest.yaml
sudo -E MAKEISO_ARGS="--output cOS-Seed-green-${{ env.COS_VERSION }}-arm64" MANIFEST=manifest.yaml.remote make local-iso
sudo -E MAKEISO_ARGS="--name cOS-Seed-green-${{ env.COS_VERSION }}-arm64 --repo ${{ env.FINAL_REPO }}" make local-iso
- name: Build ISO from remote repositories 🔧
if: github.event_name == 'schedule' || startsWith(github.ref, 'refs/tags/')
run: |
sudo -E YQ=/usr/bin/yq MAKEISO_ARGS="--output cOS-Seed-green-${{ env.COS_VERSION }}-arm64" make iso
sudo -E MAKEISO_ARGS="--name cOS-Seed-green-${{ env.COS_VERSION }}-arm64" make iso
- uses: actions/upload-artifact@v2
with:
name: cOS-squashfs-green-arm64.iso.zip
Expand Down Expand Up @@ -324,13 +322,11 @@ jobs:
- name: Build ISO from local build 🔧
if: github.event_name != 'schedule' && !startsWith(github.ref, 'refs/tags/')
run: |
source .github/helpers.sh
create_remote_manifest manifest.yaml
sudo -E MAKEISO_ARGS="--output cOS-Seed-green-${{ env.COS_VERSION }}-arm64" MANIFEST=manifest.yaml.remote make local-iso
sudo -E MAKEISO_ARGS="--name cOS-Seed-green-${{ env.COS_VERSION }}-arm64 --repo ${{ env.FINAL_REPO }}" make local-iso
- name: Build ISO from remote repositories 🔧
if: github.event_name == 'schedule' || startsWith(github.ref, 'refs/tags/')
run: |
sudo -E YQ=/usr/bin/yq MAKEISO_ARGS="--output cOS-Seed-green-${{ env.COS_VERSION }}-arm64" make iso
sudo -E MAKEISO_ARGS="--name cOS-Seed-green-${{ env.COS_VERSION }}-arm64" make iso
- uses: actions/upload-artifact@v2
with:
name: cOS-nonsquashfs-green-arm64.iso.zip
Expand Down
12 changes: 4 additions & 8 deletions .github/workflows/build-master-green-x86_64.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -152,13 +152,11 @@ jobs:
- name: Build ISO from local build 🔧
if: github.event_name != 'schedule' && !startsWith(github.ref, 'refs/tags/')
run: |
source .github/helpers.sh
create_remote_manifest manifest.yaml
sudo -E MAKEISO_ARGS="--output cOS-Seed-green-${{ env.COS_VERSION }}-x86_64" MANIFEST=manifest.yaml.remote make local-iso
sudo -E MAKEISO_ARGS="--name cOS-Seed-green-${{ env.COS_VERSION }}-x86_64 --repo ${{ env.FINAL_REPO }}" make local-iso
- name: Build ISO from remote repositories 🔧
if: github.event_name == 'schedule' || startsWith(github.ref, 'refs/tags/')
run: |
sudo -E YQ=/usr/bin/yq MAKEISO_ARGS="--output cOS-Seed-green-${{ env.COS_VERSION }}-x86_64" make iso
sudo -E MAKEISO_ARGS="--name cOS-Seed-green-${{ env.COS_VERSION }}-x86_64" make iso
- uses: actions/upload-artifact@v2
with:
name: cOS-squashfs-green-x86_64.iso.zip
Expand Down Expand Up @@ -435,13 +433,11 @@ jobs:
- name: Build ISO from local build 🔧
if: github.event_name != 'schedule' && !startsWith(github.ref, 'refs/tags/')
run: |
source .github/helpers.sh
create_remote_manifest manifest.yaml
sudo -E MAKEISO_ARGS="--output cOS-Seed-green-${{ env.COS_VERSION }}-x86_64" MANIFEST=manifest.yaml.remote make local-iso
sudo -E MAKEISO_ARGS="--name cOS-Seed-green-${{ env.COS_VERSION }}-x86_64 --repo ${{ env.FINAL_REPO }}" make local-iso
- name: Build ISO from remote repositories 🔧
if: github.event_name == 'schedule' || startsWith(github.ref, 'refs/tags/')
run: |
sudo -E YQ=/usr/bin/yq MAKEISO_ARGS="--output cOS-Seed-green-${{ env.COS_VERSION }}-x86_64" make iso
sudo -E MAKEISO_ARGS="--name cOS-Seed-green-${{ env.COS_VERSION }}-x86_64" make iso
- uses: actions/upload-artifact@v2
with:
name: cOS-nonsquashfs-green-x86_64.iso.zip
Expand Down
12 changes: 4 additions & 8 deletions .github/workflows/build-nightly-green-x86_64.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -129,13 +129,11 @@ jobs:
- name: Build ISO from local build 🔧
if: github.event_name != 'schedule' && !startsWith(github.ref, 'refs/tags/')
run: |
source .github/helpers.sh
create_remote_manifest manifest.yaml
sudo -E MAKEISO_ARGS="--output cOS-Seed-green-${{ env.COS_VERSION }}-x86_64" MANIFEST=manifest.yaml.remote make local-iso
sudo -E MAKEISO_ARGS="--name cOS-Seed-green-${{ env.COS_VERSION }}-x86_64 --repo ${{ env.FINAL_REPO }}" make local-iso
- name: Build ISO from remote repositories 🔧
if: github.event_name == 'schedule' || startsWith(github.ref, 'refs/tags/')
run: |
sudo -E YQ=/usr/bin/yq MAKEISO_ARGS="--output cOS-Seed-green-${{ env.COS_VERSION }}-x86_64" make iso
sudo -E MAKEISO_ARGS="--name cOS-Seed-green-${{ env.COS_VERSION }}-x86_64" make iso
- uses: actions/upload-artifact@v2
with:
name: cOS-squashfs-green-x86_64.iso.zip
Expand Down Expand Up @@ -406,13 +404,11 @@ jobs:
- name: Build ISO from local build 🔧
if: github.event_name != 'schedule' && !startsWith(github.ref, 'refs/tags/')
run: |
source .github/helpers.sh
create_remote_manifest manifest.yaml
sudo -E MAKEISO_ARGS="--output cOS-Seed-green-${{ env.COS_VERSION }}-x86_64" MANIFEST=manifest.yaml.remote make local-iso
sudo -E MAKEISO_ARGS="--name cOS-Seed-green-${{ env.COS_VERSION }}-x86_64 --repo ${{ env.FINAL_REPO }}" make local-iso
- name: Build ISO from remote repositories 🔧
if: github.event_name == 'schedule' || startsWith(github.ref, 'refs/tags/')
run: |
sudo -E YQ=/usr/bin/yq MAKEISO_ARGS="--output cOS-Seed-green-${{ env.COS_VERSION }}-x86_64" make iso
sudo -E MAKEISO_ARGS="--name cOS-Seed-green-${{ env.COS_VERSION }}-x86_64" make iso
- uses: actions/upload-artifact@v2
with:
name: cOS-nonsquashfs-green-x86_64.iso.zip
Expand Down
12 changes: 4 additions & 8 deletions .github/workflows/build-pr-green-arm64.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -140,13 +140,11 @@ jobs:
- name: Build ISO from local build 🔧
if: github.event_name != 'schedule' && !startsWith(github.ref, 'refs/tags/')
run: |
source .github/helpers.sh
create_remote_manifest manifest.yaml
sudo -E MAKEISO_ARGS="--output cOS-Seed-green-${{ env.COS_VERSION }}-arm64" MANIFEST=manifest.yaml.remote make local-iso
sudo -E MAKEISO_ARGS="--name cOS-Seed-green-${{ env.COS_VERSION }}-arm64 --repo ${{ env.FINAL_REPO }}" make local-iso
- name: Build ISO from remote repositories 🔧
if: github.event_name == 'schedule' || startsWith(github.ref, 'refs/tags/')
run: |
sudo -E YQ=/usr/bin/yq MAKEISO_ARGS="--output cOS-Seed-green-${{ env.COS_VERSION }}-arm64" make iso
sudo -E MAKEISO_ARGS="--name cOS-Seed-green-${{ env.COS_VERSION }}-arm64" make iso
- uses: actions/upload-artifact@v2
with:
name: cOS-squashfs-green-arm64.iso.zip
Expand Down Expand Up @@ -310,13 +308,11 @@ jobs:
- name: Build ISO from local build 🔧
if: github.event_name != 'schedule' && !startsWith(github.ref, 'refs/tags/')
run: |
source .github/helpers.sh
create_remote_manifest manifest.yaml
sudo -E MAKEISO_ARGS="--output cOS-Seed-green-${{ env.COS_VERSION }}-arm64" MANIFEST=manifest.yaml.remote make local-iso
sudo -E MAKEISO_ARGS="--name cOS-Seed-green-${{ env.COS_VERSION }}-arm64 --repo ${{ env.FINAL_REPO }}" make local-iso
- name: Build ISO from remote repositories 🔧
if: github.event_name == 'schedule' || startsWith(github.ref, 'refs/tags/')
run: |
sudo -E YQ=/usr/bin/yq MAKEISO_ARGS="--output cOS-Seed-green-${{ env.COS_VERSION }}-arm64" make iso
sudo -E MAKEISO_ARGS="--name cOS-Seed-green-${{ env.COS_VERSION }}-arm64" make iso
- uses: actions/upload-artifact@v2
with:
name: cOS-nonsquashfs-green-arm64.iso.zip
Expand Down
12 changes: 4 additions & 8 deletions .github/workflows/build-pr-green-x86_64.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -143,13 +143,11 @@ jobs:
- name: Build ISO from local build 🔧
if: github.event_name != 'schedule' && !startsWith(github.ref, 'refs/tags/')
run: |
source .github/helpers.sh
create_remote_manifest manifest.yaml
sudo -E MAKEISO_ARGS="--output cOS-Seed-green-${{ env.COS_VERSION }}-x86_64" MANIFEST=manifest.yaml.remote make local-iso
sudo -E MAKEISO_ARGS="--name cOS-Seed-green-${{ env.COS_VERSION }}-x86_64 --repo ${{ env.FINAL_REPO }}" make local-iso
- name: Build ISO from remote repositories 🔧
if: github.event_name == 'schedule' || startsWith(github.ref, 'refs/tags/')
run: |
sudo -E YQ=/usr/bin/yq MAKEISO_ARGS="--output cOS-Seed-green-${{ env.COS_VERSION }}-x86_64" make iso
sudo -E MAKEISO_ARGS="--name cOS-Seed-green-${{ env.COS_VERSION }}-x86_64" make iso
- uses: actions/upload-artifact@v2
with:
name: cOS-squashfs-green-x86_64.iso.zip
Expand Down Expand Up @@ -426,13 +424,11 @@ jobs:
- name: Build ISO from local build 🔧
if: github.event_name != 'schedule' && !startsWith(github.ref, 'refs/tags/')
run: |
source .github/helpers.sh
create_remote_manifest manifest.yaml
sudo -E MAKEISO_ARGS="--output cOS-Seed-green-${{ env.COS_VERSION }}-x86_64" MANIFEST=manifest.yaml.remote make local-iso
sudo -E MAKEISO_ARGS="--name cOS-Seed-green-${{ env.COS_VERSION }}-x86_64 --repo ${{ env.FINAL_REPO }}" make local-iso
- name: Build ISO from remote repositories 🔧
if: github.event_name == 'schedule' || startsWith(github.ref, 'refs/tags/')
run: |
sudo -E YQ=/usr/bin/yq MAKEISO_ARGS="--output cOS-Seed-green-${{ env.COS_VERSION }}-x86_64" make iso
sudo -E MAKEISO_ARGS="--name cOS-Seed-green-${{ env.COS_VERSION }}-x86_64" make iso
- uses: actions/upload-artifact@v2
with:
name: cOS-nonsquashfs-green-x86_64.iso.zip
Expand Down
12 changes: 4 additions & 8 deletions .github/workflows/build-releases-green-arm64.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -154,13 +154,11 @@ jobs:
- name: Build ISO from local build 🔧
if: github.event_name != 'schedule' && !startsWith(github.ref, 'refs/tags/')
run: |
source .github/helpers.sh
create_remote_manifest manifest.yaml
sudo -E MAKEISO_ARGS="--output cOS-Seed-green-${{ env.COS_VERSION }}-arm64" MANIFEST=manifest.yaml.remote make local-iso
sudo -E MAKEISO_ARGS="--name cOS-Seed-green-${{ env.COS_VERSION }}-arm64 --repo ${{ env.FINAL_REPO }}" make local-iso
- name: Build ISO from remote repositories 🔧
if: github.event_name == 'schedule' || startsWith(github.ref, 'refs/tags/')
run: |
sudo -E YQ=/usr/bin/yq MAKEISO_ARGS="--output cOS-Seed-green-${{ env.COS_VERSION }}-arm64" make iso
sudo -E MAKEISO_ARGS="--name cOS-Seed-green-${{ env.COS_VERSION }}-arm64" make iso
- uses: actions/upload-artifact@v2
with:
name: cOS-squashfs-green-arm64.iso.zip
Expand Down Expand Up @@ -324,13 +322,11 @@ jobs:
- name: Build ISO from local build 🔧
if: github.event_name != 'schedule' && !startsWith(github.ref, 'refs/tags/')
run: |
source .github/helpers.sh
create_remote_manifest manifest.yaml
sudo -E MAKEISO_ARGS="--output cOS-Seed-green-${{ env.COS_VERSION }}-arm64" MANIFEST=manifest.yaml.remote make local-iso
sudo -E MAKEISO_ARGS="--name cOS-Seed-green-${{ env.COS_VERSION }}-arm64 --repo ${{ env.FINAL_REPO }}" make local-iso
- name: Build ISO from remote repositories 🔧
if: github.event_name == 'schedule' || startsWith(github.ref, 'refs/tags/')
run: |
sudo -E YQ=/usr/bin/yq MAKEISO_ARGS="--output cOS-Seed-green-${{ env.COS_VERSION }}-arm64" make iso
sudo -E MAKEISO_ARGS="--name cOS-Seed-green-${{ env.COS_VERSION }}-arm64" make iso
- uses: actions/upload-artifact@v2
with:
name: cOS-nonsquashfs-green-arm64.iso.zip
Expand Down
12 changes: 4 additions & 8 deletions .github/workflows/build-releases-green-x86_64.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -152,13 +152,11 @@ jobs:
- name: Build ISO from local build 🔧
if: github.event_name != 'schedule' && !startsWith(github.ref, 'refs/tags/')
run: |
source .github/helpers.sh
create_remote_manifest manifest.yaml
sudo -E MAKEISO_ARGS="--output cOS-Seed-green-${{ env.COS_VERSION }}-x86_64" MANIFEST=manifest.yaml.remote make local-iso
sudo -E MAKEISO_ARGS="--name cOS-Seed-green-${{ env.COS_VERSION }}-x86_64 --repo ${{ env.FINAL_REPO }}" make local-iso
- name: Build ISO from remote repositories 🔧
if: github.event_name == 'schedule' || startsWith(github.ref, 'refs/tags/')
run: |
sudo -E YQ=/usr/bin/yq MAKEISO_ARGS="--output cOS-Seed-green-${{ env.COS_VERSION }}-x86_64" make iso
sudo -E MAKEISO_ARGS="--name cOS-Seed-green-${{ env.COS_VERSION }}-x86_64" make iso
- uses: actions/upload-artifact@v2
with:
name: cOS-squashfs-green-x86_64.iso.zip
Expand Down Expand Up @@ -435,13 +433,11 @@ jobs:
- name: Build ISO from local build 🔧
if: github.event_name != 'schedule' && !startsWith(github.ref, 'refs/tags/')
run: |
source .github/helpers.sh
create_remote_manifest manifest.yaml
sudo -E MAKEISO_ARGS="--output cOS-Seed-green-${{ env.COS_VERSION }}-x86_64" MANIFEST=manifest.yaml.remote make local-iso
sudo -E MAKEISO_ARGS="--name cOS-Seed-green-${{ env.COS_VERSION }}-x86_64 --repo ${{ env.FINAL_REPO }}" make local-iso
- name: Build ISO from remote repositories 🔧
if: github.event_name == 'schedule' || startsWith(github.ref, 'refs/tags/')
run: |
sudo -E YQ=/usr/bin/yq MAKEISO_ARGS="--output cOS-Seed-green-${{ env.COS_VERSION }}-x86_64" make iso
sudo -E MAKEISO_ARGS="--name cOS-Seed-green-${{ env.COS_VERSION }}-x86_64" make iso
- uses: actions/upload-artifact@v2
with:
name: cOS-nonsquashfs-green-x86_64.iso.zip
Expand Down
4 changes: 2 additions & 2 deletions make/Makefile.iso
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ endif
ifneq ("$(ISO)","")
@echo "'$(ISO) exists, run 'make clean_iso' folled by 'make $@' to recreate"
else
$(ELEMENTAL) --debug --config-dir . build-iso --repo $(DESTINATION)
$(ELEMENTAL) --debug --config-dir $(ROOT_DIR) build-iso $(MAKEISO_ARGS) --date --repo $(DESTINATION)
endif

.PHONY: iso
Expand All @@ -90,7 +90,7 @@ endif
ifneq ("$(ISO)","")
@echo "'$(ISO) exists, run 'make clean_iso' folled by 'make $@' to recreate"
else
$(ELEMENTAL) --debug --config-dir . build-iso --repo $(FINAL_REPO)
$(ELEMENTAL) --debug --config-dir $(ROOT_DIR) build-iso $(MAKEISO_ARGS) --repo $(FINAL_REPO)
endif


Expand Down
1 change: 0 additions & 1 deletion manifest.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ iso:
label: "COS_LIVE"

name: "cOS-0"
date: true
label: "COS_LIVE"

# Raw disk creation values start
Expand Down

0 comments on commit 6a209c8

Please sign in to comment.