This commit is contained in:
Stardust3D 2022-01-29 17:01:51 +01:00
parent 3542b40a19
commit 7ddb102dee

View file

@ -1,13 +1,20 @@
image: "ubuntu"
image: "alpine"
stages:
- build
variables:
EXPORT_NAME: ProjectName
EXPORT_NAME: rjw-plasticsurgeries
build:
stage: build
script:
- apt update; apt install -y zip
- zip -r ../dist.zip *
- apk --no-cache add zip curl
- mkdir -p ../rjw-plasticsurgeries.tmp
- cp -R ./* ../rjw-plasticsurgeries.tmp
- mv ../rjw-plasticsurgeries.tmp ./rjw-plasticsurgeries; rm ./rjw-plasticsurgeries/CI_SERVER_TLS_CA_FILE; rm -r ./rjw-plasticsurgeries/git-template
- zip -q "rjw-plasticsurgeries-$CI_COMMIT_SHORT_SHA.zip" ./rjw-plasticsurgeries
- 'curl --header "JOB-TOKEN: $CI_JOB_TOKEN" --upload-file ./rjw-plasticsurgeries-$CI_COMMIT_SHORT_SHA.zip "${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/packages/generic/zip/rjw-plasticsurgeries-$CI_COMMIT_SHORT_SHA.zip"'
artifacts:
name: $EXPORT_NAME-$CI_COMMIT_TAG
name: rjw-plasticsurgeries-$CI_COMMIT_SHORT_SHA
paths:
- ../dist.zip
- rjw-plasticsurgeries/