test release
This commit is contained in:
parent
9269b770d7
commit
8ad4b1f159
2 changed files with 7 additions and 3 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -6,6 +6,7 @@ __pycache__/
|
||||||
target/
|
target/
|
||||||
.lein-repl-history
|
.lein-repl-history
|
||||||
.lein-failures
|
.lein-failures
|
||||||
|
pom.*
|
||||||
|
|
||||||
# cljs
|
# cljs
|
||||||
.shadow-cljs
|
.shadow-cljs
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
stages:
|
stages:
|
||||||
|
- first
|
||||||
- build_and_test
|
- build_and_test
|
||||||
- package
|
- package
|
||||||
- security
|
- security
|
||||||
|
@ -94,14 +95,16 @@ release:
|
||||||
# Caution, as of 2021-02-02 these assets links require a login, see:
|
# Caution, as of 2021-02-02 these assets links require a login, see:
|
||||||
# https://gitlab.com/gitlab-org/gitlab/-/issues/299384
|
# https://gitlab.com/gitlab-org/gitlab/-/issues/299384
|
||||||
image: registry.gitlab.com/gitlab-org/release-cli:latest
|
image: registry.gitlab.com/gitlab-org/release-cli:latest
|
||||||
stage: upload
|
stage: first
|
||||||
rules:
|
# rules:
|
||||||
- if: '$CI_COMMIT_TAG != null'
|
# - if: '$CI_COMMIT_TAG != null'
|
||||||
variables:
|
variables:
|
||||||
|
CI_COMMIT_TAG: "0.1.1"
|
||||||
PACKAGE_REGISTRY_URL: "${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/packages/generic"
|
PACKAGE_REGISTRY_URL: "${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/packages/generic"
|
||||||
UBERJAR_URL: "${PACKAGE_REGISTRY_URL}/k8s-mastodon-bot-standalone/${$CI_COMMIT_TAG}/k8s-mastodon-bot-standalone.jar"
|
UBERJAR_URL: "${PACKAGE_REGISTRY_URL}/k8s-mastodon-bot-standalone/${$CI_COMMIT_TAG}/k8s-mastodon-bot-standalone.jar"
|
||||||
FRONTEND_URL: "${PACKAGE_REGISTRY_URL}/k8s-mastodon-bot/${$CI_COMMIT_TAG}/k8s-mastodon-bot.js"
|
FRONTEND_URL: "${PACKAGE_REGISTRY_URL}/k8s-mastodon-bot/${$CI_COMMIT_TAG}/k8s-mastodon-bot.js"
|
||||||
script:
|
script:
|
||||||
|
- apk --no-cache add curl
|
||||||
- |
|
- |
|
||||||
curl --header "JOB-TOKEN: ${CI_JOB_TOKEN}" --upload-file target/uberjar/k8s-mastodon-bot-standalone.jar ${UBERJAR_URL}
|
curl --header "JOB-TOKEN: ${CI_JOB_TOKEN}" --upload-file target/uberjar/k8s-mastodon-bot-standalone.jar ${UBERJAR_URL}
|
||||||
- |
|
- |
|
||||||
|
|
Loading…
Reference in a new issue