Skip to content

Commit

Permalink
Reduce calls to release API (#1771)
Browse files Browse the repository at this point in the history
Reduce calls to release api

Signed-off-by: Mauro Morales <[email protected]>
  • Loading branch information
mauromorales authored Aug 28, 2023
1 parent 06823ef commit 3647d96
Showing 1 changed file with 13 additions and 5 deletions.
18 changes: 13 additions & 5 deletions .github/workflows/release-arm.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Build arm images
on:
push:
tags:
- '*'
- 'v*'
jobs:
get-core-matrix:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -138,6 +138,10 @@ jobs:
http = true
EOF
docker run --privileged -v $HOME/.earthly/config.yml:/etc/.earthly/config.yml -v /var/run/docker.sock:/var/run/docker.sock --rm --env EARTHLY_BUILD_ARGS -t -v "$(pwd)":/workspace -v earthly-tmp:/tmp/earthly:rw earthly/earthly:v0.7.5 --allow-privileged +all-arm -VARIANT=core --MODEL=${{ matrix.model }} --FLAVOR=${{ matrix.flavor }}
- name: Convert all json files into a reports.tar.gz file
run: |
export VERSION=$(cat build/VERSION)
sudo tar cvf kairos-core-${matrix.flavor}-arm64-${matrix.model}-${VERSION}-scan-reports.tar.gz build/*.json
- name: Push 🔧
if: startsWith(github.ref, 'refs/tags/')
run: |
Expand Down Expand Up @@ -165,7 +169,7 @@ jobs:
if: startsWith(github.ref, 'refs/tags/')
with:
files: |
build/*.json
build/*scan-reports.tar.gz
- name: Prepare sarif files 🔧
run: |
mkdir sarif
Expand Down Expand Up @@ -268,6 +272,10 @@ jobs:
docker run --privileged -v $HOME/.earthly/config.yml:/etc/.earthly/config.yml -v /var/run/docker.sock:/var/run/docker.sock --rm --env EARTHLY_BUILD_ARGS -t -v "$(pwd)":/workspace -v earthly-tmp:/tmp/earthly:rw earthly/earthly:v0.7.5 --allow-privileged +all-arm -VARIANT=standard -K3S_VERSION=${{ matrix.k3s_version }} --MODEL=${{ matrix.model }} --FLAVOR=${{ matrix.flavor }}
- name: Convert all json files into a reports.tar.gz file
run: |
export VERSION=$(cat build/VERSION)
sudo tar cvf kairos-standard-${matrix.flavor}-arm64-${matrix.model}-${VERSION}-scan-reports.tar.gz build/*.json
- name: Push 🔧
if: startsWith(github.ref, 'refs/tags/')
run: |
Expand Down Expand Up @@ -295,7 +303,7 @@ jobs:
if: startsWith(github.ref, 'refs/tags/')
with:
files: |
build/*.json
build/*scan-reports.tar.gz
- name: Prepare sarif files 🔧
run: |
mkdir sarif
Expand Down Expand Up @@ -345,7 +353,7 @@ jobs:
if: startsWith(github.ref, 'refs/tags/')
with:
files: |
release/*
release/*iso*
build-arm-generic-standard:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -385,4 +393,4 @@ jobs:
if: startsWith(github.ref, 'refs/tags/')
with:
files: |
release/*
release/*iso*

0 comments on commit 3647d96

Please sign in to comment.