Merge remote-tracking branch 'origin/master'
This commit is contained in:
commit
f243cbba76
1 changed files with 40 additions and 40 deletions
|
@ -181,45 +181,45 @@ test-nightly:
|
||||||
# a) it's gross
|
# a) it's gross
|
||||||
# b) it probably won't work and i really don't want to partake in CI tomfoolery right now, or ever
|
# b) it probably won't work and i really don't want to partake in CI tomfoolery right now, or ever
|
||||||
|
|
||||||
build-release:
|
#build-release:
|
||||||
stage: release
|
# stage: release
|
||||||
cache: { }
|
# cache: { }
|
||||||
rules:
|
# rules:
|
||||||
- if: $CI_COMMIT_TAG
|
# - if: $CI_COMMIT_TAG
|
||||||
needs: ["test-stable"]
|
# needs: ["test-stable"]
|
||||||
script:
|
# script:
|
||||||
- ./package.sh
|
# - ./package.sh
|
||||||
artifacts:
|
# artifacts:
|
||||||
paths:
|
# paths:
|
||||||
- out/
|
# - out/
|
||||||
|
|
||||||
upload-release:
|
#upload-release:
|
||||||
stage: release
|
# stage: release
|
||||||
cache: { }
|
# cache: { }
|
||||||
rules:
|
# rules:
|
||||||
- if: $CI_COMMIT_TAG
|
# - if: $CI_COMMIT_TAG
|
||||||
image: curlimages/curl:latest
|
# image: curlimages/curl:latest
|
||||||
script:
|
# script:
|
||||||
- git describe --tags --abbrev=0 | cut -c 2- > tmp
|
# - git describe --tags --abbrev=0 | cut -c 2- > tmp
|
||||||
- |
|
# - |
|
||||||
cd out
|
# cd out
|
||||||
for _bin in *.{zip,xz} do; curl --header "JOB-TOKEN: ${CI_JOB_TOKEN}" --upload-file "$_bin" "${PACKAGE_REGISTRY_URL}/$(cat ../tmp)/${_bin}"; done
|
# for _bin in *.{zip,xz} do; curl --header "JOB-TOKEN: ${CI_JOB_TOKEN}" --upload-file "$_bin" "${PACKAGE_REGISTRY_URL}/$(cat ../tmp)/${_bin}"; done
|
||||||
- rm ../tmp
|
# - rm ../tmp
|
||||||
|
|
||||||
create-release:
|
#create-release:
|
||||||
stage: release
|
# stage: release
|
||||||
cache: {}
|
# cache: {}
|
||||||
image: registry.gitlab.com/gitlab-org/release-cli:latest
|
# image: registry.gitlab.com/gitlab-org/release-cli:latest
|
||||||
rules:
|
# rules:
|
||||||
- if: $CI_COMMIT_TAG
|
# - if: $CI_COMMIT_TAG
|
||||||
script:
|
# script:
|
||||||
- |
|
# - |
|
||||||
cd out
|
# cd out
|
||||||
echo -n "release-cli create --name \"Release $CI_COMMIT_TAG\" --tag-name=\"$CI_COMMIT_TAG\" " > tmp.sh
|
# echo -n "release-cli create --name \"Release $CI_COMMIT_TAG\" --tag-name=\"$CI_COMMIT_TAG\" " > tmp.sh
|
||||||
git describe --tags --abbrev=0 | cut -c 2- > tmp
|
# git describe --tags --abbrev=0 | cut -c 2- > tmp
|
||||||
for _bin in *.{zip,xz}; do echo -n --assets-link \"\{\"name\":\"${_bin}\",\"url\":\"${PACKAGE_REGISTRY_URL}/$(cat tmp)/${_bin}\"\}\" >> tmp.sh; echo -n " " >> tmp.sh; done
|
# for _bin in *.{zip,xz}; do echo -n --assets-link \"\{\"name\":\"${_bin}\",\"url\":\"${PACKAGE_REGISTRY_URL}/$(cat tmp)/${_bin}\"\}\" >> tmp.sh; echo -n " " >> tmp.sh; done
|
||||||
- cat tmp.sh
|
# - cat tmp.sh
|
||||||
- bash tmp.sh
|
# - bash tmp.sh
|
||||||
- |
|
# - |
|
||||||
rm tmp.sh
|
# rm tmp.sh
|
||||||
rm tmp
|
# rm tmp
|
||||||
|
|
Loading…
Reference in a new issue