-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: reuse component builds for aggregation
- Loading branch information
1 parent
b620c9c
commit 7131f04
Showing
4 changed files
with
11 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,8 +19,7 @@ jobs: | |
name: "Build" | ||
strategy: | ||
matrix: | ||
component: [ocmcli] | ||
# component: [ocmcli, helminstaller, helmdemo, subchartsdemo, ecrplugin] | ||
component: [ocmcli, helminstaller, helmdemo, subchartsdemo, ecrplugin] | ||
runs-on: large_runner | ||
steps: | ||
- name: Self Hosted Runner Post Job Cleanup Action | ||
|
@@ -70,8 +69,7 @@ jobs: | |
runs-on: large_runner | ||
needs: build | ||
env: | ||
components: ocmcli | ||
# components: ocmcli helminstaller helmdemo subchartsdemo ecrplugin | ||
components: ocmcli helminstaller helmdemo subchartsdemo ecrplugin | ||
steps: | ||
- name: Self Hosted Runner Post Job Cleanup Action | ||
uses: TooMuch4U/[email protected] | ||
|
@@ -109,23 +107,23 @@ jobs: | |
path: gen/downloaded-ctfs | ||
- name: Move CTFs into correct directory for aggregation | ||
run: | | ||
IFS=" " read -a COMPONENTS <<< ${{ env.components }} | ||
IFS=" " read -a COMPONENTS <<< "${{ env.components }}" | ||
for i in "${COMPONENTS[@]}"; do | ||
mkdir -p ${{ github.workspace }}/gen/${i} | ||
mv ${{ github.workspace }}/gen/downloaded-ctfs/ctf-component-${i} ${{ github.workspace }}/gen/${i}/ctf | ||
ls -R ${{ github.workspace }}/gen/${i} | ||
done | ||
- name: Create aggregated CTF | ||
run: | | ||
PATH=$PATH:$(go env GOPATH)/bin CTF_TYPE=${{ env.CTF_TYPE }} COMPONENTS=${{ env.components }} make plain-ctf | ||
PATH=$PATH:$(go env GOPATH)/bin CTF_TYPE=${{ env.CTF_TYPE }} COMPONENTS="${{ env.components }}" make plain-ctf | ||
- name: Upload aggregated CTF | ||
# only update on main | ||
if: github.ref == 'refs/heads/main' | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
if-no-files-found: error | ||
overwrite: true | ||
retention-days: 1 | ||
retention-days: 90 | ||
name: ctf-aggregated | ||
path: gen/ctf | ||
- name: Delete old CTFs that lead up to aggregation | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters