Version 0.1.4

This commit is contained in:
jem 2021-04-19 18:28:49 +02:00
parent 8bd76b7542
commit be5a9e8ee8
4 changed files with 21 additions and 21 deletions

View file

@ -42,11 +42,11 @@ report-frontend:
<<: *cljs <<: *cljs
stage: package stage: package
script: script:
- mkdir -p target - mkdir -p target/frontend-build
- shadow-cljs run shadow.cljs.build-report frontend target/build-report.html - shadow-cljs run shadow.cljs.build-report frontend target/frontend-build/build-report.html
artifacts: artifacts:
paths: paths:
- target/build-report.html - target/frontend-build/build-report.html
package-frontend: package-frontend:
<<: *cljs <<: *cljs
@ -92,23 +92,21 @@ upload-clj-prerelease:
- lein deploy clojars - lein deploy clojars
release: 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 image: registry.gitlab.com/gitlab-org/release-cli:latest
stage: upload stage: upload
rules: rules:
- if: '$CI_COMMIT_TAG != null' - if: '$CI_COMMIT_TAG != null'
variables: artifacts:
PACKAGE_REGISTRY_URL: "${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/packages/generic" paths:
UBERJAR_URL: "${PACKAGE_REGISTRY_URL}/k8s-mastodon-bot-standalone/${$CI_COMMIT_TAG}/k8s-mastodon-bot-standalone.jar" - target/uberjar
FRONTEND_URL: "${PACKAGE_REGISTRY_URL}/k8s-mastodon-bot/${$CI_COMMIT_TAG}/k8s-mastodon-bot.js" - target/frontend-build
script: script:
- apk --no-cache add curl - 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 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-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.js\",\"url\":\"${FRONTEND_URL}\"}" --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\"}" \

View file

@ -2,7 +2,7 @@
"name": "k8s-mastodon-bot", "name": "k8s-mastodon-bot",
"description": "Generate k8s yaml for a mastodon-bot deployment.", "description": "Generate k8s yaml for a mastodon-bot deployment.",
"author": "meissa GmbH", "author": "meissa GmbH",
"version": "0.1.4-SNAPSHOT", "version": "0.1.4",
"homepage": "https://gitlab.com/domaindrivenarchitecture/k8s-mastodon-bot#readme", "homepage": "https://gitlab.com/domaindrivenarchitecture/k8s-mastodon-bot#readme",
"repository": "https://www.npmjs.com/package/k8s-mastodon-bot", "repository": "https://www.npmjs.com/package/k8s-mastodon-bot",
"license": "APACHE2", "license": "APACHE2",

View file

@ -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" :description "common utils for dda config"
:url "https://www.domaindrivenarchitecture.org" :url "https://www.domaindrivenarchitecture.org"
:license {:name "Apache License, Version 2.0" :license {:name "Apache License, Version 2.0"

View file

@ -5,9 +5,10 @@ metadata:
labels: labels:
app.kubernetes.io/name: k8s-mastodon-bot app.kubernetes.io/name: k8s-mastodon-bot
spec: spec:
schedule: "* */10 * * *" schedule: "* */15 * * *"
successfulJobsHistoryLimit: 0 successfulJobsHistoryLimit: 5
failedJobsHistoryLimit: 0 failedJobsHistoryLimit: 5
concurrencyPolicy: Replace
jobTemplate: jobTemplate:
spec: spec:
template: template:
@ -32,3 +33,4 @@ spec:
subPath: credentials.edn subPath: credentials.edn
readOnly: true readOnly: true
restartPolicy: Never restartPolicy: Never