-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix artifact upload for gitlab builds
- Loading branch information
1 parent
cea8feb
commit 6cb931b
Showing
2 changed files
with
26 additions
and
1 deletion.
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
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 |
---|---|---|
@@ -1,8 +1,33 @@ | ||
image: gitlab.resolume.com:4567/resolume/containers/github-actions/act:latest | ||
|
||
stages: | ||
- build | ||
- bundle | ||
|
||
build: | ||
tags: | ||
- docker | ||
stage: build | ||
script: | ||
# run jobs defined using github actions | ||
- act | ||
# copy over the builds and unzip all zipped files | ||
- cp -r /tmp/artifacts/1/build . | ||
- for file in $(find build -name '*.gz__'); do | ||
mv $file $(dirname $file)/$(basename $file __); | ||
gunzip $(dirname $file)/$(basename $file __); | ||
done | ||
artifacts: | ||
paths: | ||
- build | ||
|
||
bundle: | ||
tags: | ||
- docker | ||
stage: bundle | ||
needs: [ build ] | ||
script: | ||
- echo "This is a wrapper job to copy artifacts." | ||
artifacts: | ||
paths: | ||
- build |