test release

This commit is contained in:
jem 2021-03-17 15:35:55 +01:00
parent 9269b770d7
commit 8ad4b1f159
2 changed files with 7 additions and 3 deletions

1
.gitignore vendored
View file

@ -6,6 +6,7 @@ __pycache__/
target/
.lein-repl-history
.lein-failures
pom.*
# cljs
.shadow-cljs

View file

@ -1,4 +1,5 @@
stages:
- first
- build_and_test
- package
- security
@ -94,14 +95,16 @@ release:
# Caution, as of 2021-02-02 these assets links require a login, see:
# https://gitlab.com/gitlab-org/gitlab/-/issues/299384
image: registry.gitlab.com/gitlab-org/release-cli:latest
stage: upload
rules:
- if: '$CI_COMMIT_TAG != null'
stage: first
# rules:
# - if: '$CI_COMMIT_TAG != null'
variables:
CI_COMMIT_TAG: "0.1.1"
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"
FRONTEND_URL: "${PACKAGE_REGISTRY_URL}/k8s-mastodon-bot/${$CI_COMMIT_TAG}/k8s-mastodon-bot.js"
script:
- apk --no-cache add curl
- |
curl --header "JOB-TOKEN: ${CI_JOB_TOKEN}" --upload-file target/uberjar/k8s-mastodon-bot-standalone.jar ${UBERJAR_URL}
- |