Skip to content

Commit

Permalink
Fix artifact upload for gitlab builds
Browse files Browse the repository at this point in the history
  • Loading branch information
martijn-resolume committed May 14, 2024
1 parent cea8feb commit 6cb931b
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,5 @@ jobs:
- name: Upload compiled build
uses: actions/upload-artifact@v3
with:
name: wire-dashboard build
name: build
path: build
25 changes: 25 additions & 0 deletions .gitlab-ci.yml
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

0 comments on commit 6cb931b

Please sign in to comment.