Version 0.1.4
This commit is contained in:
parent
8bd76b7542
commit
be5a9e8ee8
4 changed files with 21 additions and 21 deletions
|
@ -42,11 +42,11 @@ report-frontend:
|
|||
<<: *cljs
|
||||
stage: package
|
||||
script:
|
||||
- mkdir -p target
|
||||
- shadow-cljs run shadow.cljs.build-report frontend target/build-report.html
|
||||
- mkdir -p target/frontend-build
|
||||
- shadow-cljs run shadow.cljs.build-report frontend target/frontend-build/build-report.html
|
||||
artifacts:
|
||||
paths:
|
||||
- target/build-report.html
|
||||
- target/frontend-build/build-report.html
|
||||
|
||||
package-frontend:
|
||||
<<: *cljs
|
||||
|
@ -92,23 +92,21 @@ upload-clj-prerelease:
|
|||
- lein deploy clojars
|
||||
|
||||
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'
|
||||
variables:
|
||||
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"
|
||||
artifacts:
|
||||
paths:
|
||||
- target/uberjar
|
||||
- target/frontend-build
|
||||
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/frontend-build/k8s-mastodon-bot.js ${FRONTEND_URL}
|
||||
- |
|
||||
release-cli create --name "Release $CI_COMMIT_TAG" --tag-name $CI_COMMIT_TAG
|
||||
# --assets-link "{\"name\":\"k8s-mastodon-bot-standalone.jar\",\"url\":\"${UBERJAR_URL}\"}" \
|
||||
# --assets-link "{\"name\":\"k8s-mastodon-bot.js\",\"url\":\"${FRONTEND_URL}\"}"
|
||||
release-cli create --name "Release $CI_COMMIT_TAG" --tag-name $CI_COMMIT_TAG \
|
||||
--assets-link "{\"name\":\"k8s-mastodon-bot-standalone.jar\",\"url\":\"https://gitlab.com/domaindrivenarchitecture/k8s-mastodon-bot/-/jobs/${CI_JOB_ID}/artifacts/file/target/uberjar/k8s-mastodon-bot-standalone.jar\"}" \
|
||||
--assets-link "{\"name\":\"k8s-mastodon-bot-standalone.jar.sha256\",\"url\":\"https://gitlab.com/domaindrivenarchitecture/k8s-mastodon-bot/-/jobs/${CI_JOB_ID}/artifacts/file/target/uberjar/k8s-mastodon-bot-standalone.jar.sha256\"}" \
|
||||
--assets-link "{\"name\":\"k8s-mastodon-bot-standalone.jar.sha512\",\"url\":\"https://gitlab.com/domaindrivenarchitecture/k8s-mastodon-bot/-/jobs/${CI_JOB_ID}/artifacts/file/target/uberjar/k8s-mastodon-bot-standalone.jar.sha512\"}" \
|
||||
--assets-link "{\"name\":\"k8s-mastodon-bot.js\",\"url\":\"https://gitlab.com/domaindrivenarchitecture/k8s-mastodon-bot/-/jobs/${CI_JOB_ID}/artifacts/file/target/frontend-build/k8s-mastodon-bot.js\"}" \
|
||||
--assets-link "{\"name\":\"k8s-mastodon-bot.js.sha256\",\"url\":\"https://gitlab.com/domaindrivenarchitecture/k8s-mastodon-bot/-/jobs/${CI_JOB_ID}/artifacts/file/target/frontend-build/k8s-mastodon-bot.js.sha256\"}" \
|
||||
--assets-link "{\"name\":\"k8s-mastodon-bot.js.sha512\",\"url\":\"https://gitlab.com/domaindrivenarchitecture/k8s-mastodon-bot/-/jobs/${CI_JOB_ID}/artifacts/file/target/frontend-build/k8s-mastodon-bot.js.sha512\"}" \
|
|
@ -2,7 +2,7 @@
|
|||
"name": "k8s-mastodon-bot",
|
||||
"description": "Generate k8s yaml for a mastodon-bot deployment.",
|
||||
"author": "meissa GmbH",
|
||||
"version": "0.1.4-SNAPSHOT",
|
||||
"version": "0.1.4",
|
||||
"homepage": "https://gitlab.com/domaindrivenarchitecture/k8s-mastodon-bot#readme",
|
||||
"repository": "https://www.npmjs.com/package/k8s-mastodon-bot",
|
||||
"license": "APACHE2",
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
(defproject dda/k8s-mastodon-bot "0.1.4-SNAPSHOT"
|
||||
(defproject dda/k8s-mastodon-bot "0.1.4"
|
||||
:description "common utils for dda config"
|
||||
:url "https://www.domaindrivenarchitecture.org"
|
||||
:license {:name "Apache License, Version 2.0"
|
||||
|
|
|
@ -5,9 +5,10 @@ metadata:
|
|||
labels:
|
||||
app.kubernetes.io/name: k8s-mastodon-bot
|
||||
spec:
|
||||
schedule: "* */10 * * *"
|
||||
successfulJobsHistoryLimit: 0
|
||||
failedJobsHistoryLimit: 0
|
||||
schedule: "* */15 * * *"
|
||||
successfulJobsHistoryLimit: 5
|
||||
failedJobsHistoryLimit: 5
|
||||
concurrencyPolicy: Replace
|
||||
jobTemplate:
|
||||
spec:
|
||||
template:
|
||||
|
@ -32,3 +33,4 @@ spec:
|
|||
subPath: credentials.edn
|
||||
readOnly: true
|
||||
restartPolicy: Never
|
||||
|
||||
|
|
Loading…
Reference in a new issue