This commit is contained in:
jem 2022-01-21 09:31:40 +01:00
parent ae6bd30923
commit 9dd3664d8c

View file

@ -102,14 +102,16 @@ gitlab:
- if: '$CI_COMMIT_TAG != null'
artifacts:
paths:
- dist/*
- release/*
before_script:
- echo "upload to gitlab"
script:
- apk --no-cache add curl
- cd dist
- find *.tar.gz -type f -exec sha256sum {} \; | sort > sha256sum.lst
- find *.tar.gz -type f -exec sha512sum {} \; | sort > sha512sum.lst
- cp -r dist release
- cd release
- rm *.whl
- find . -type f -exec sha256sum {} \; | sort > sha256sum.lst
- find . -type f -exec sha512sum {} \; | sort > sha512sum.lst
- |
release-cli create --name "Release $CI_COMMIT_TAG" --tag-name $CI_COMMIT_TAG \
--assets-link "{\"name\":\"dist\",\"url\":\"https://gitlab.com/domaindrivenarchitecture/python-terraform/-/jobs/${CI_JOB_ID}/artifacts/file/dist\"}" \
--assets-link "{\"name\":\"release\",\"url\":\"https://gitlab.com/domaindrivenarchitecture/python-terraform/-/jobs/${CI_JOB_ID}/artifacts/file/release\"}" \