2022-12-16 15:55:17 +03:00
|
|
|
cache:
|
|
|
|
key: one-key-to-rule-them-all
|
|
|
|
|
2022-12-28 13:54:01 +03:00
|
|
|
build:docker:
|
|
|
|
image: docker:dind
|
|
|
|
interruptible: true
|
|
|
|
stage: build
|
|
|
|
rules:
|
2022-12-29 14:26:05 +03:00
|
|
|
- if: $CI_COMMIT_BRANCH && $CI_COMMIT_BRANCH != $CI_DEFAULT_BRANCH
|
2022-12-29 14:30:23 +03:00
|
|
|
changes:
|
|
|
|
- app/**/*
|
|
|
|
- Dockerfile
|
2022-12-29 14:26:05 +03:00
|
|
|
- if: $CI_PIPELINE_SOURCE == 'merge_request_event'
|
2022-12-28 13:54:01 +03:00
|
|
|
tags: [ docker ]
|
|
|
|
before_script:
|
|
|
|
- echo "COMMIT=${CI_COMMIT_SHA}" >> version.env # COMMIT=`git rev-parse HEAD`
|
|
|
|
script:
|
|
|
|
- docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
|
|
|
|
- docker build . --tag ${CI_REGISTRY}/${CI_PROJECT_PATH}/${CI_BUILD_REF_NAME}:${CI_BUILD_REF}
|
|
|
|
- docker push ${CI_REGISTRY}/${CI_PROJECT_PATH}/${CI_BUILD_REF_NAME}:${CI_BUILD_REF}
|
|
|
|
|
2022-12-28 17:24:04 +03:00
|
|
|
build:apt:
|
2022-12-29 09:32:12 +03:00
|
|
|
image: debian:bookworm-slim
|
|
|
|
interruptible: true
|
2022-12-22 12:41:07 +03:00
|
|
|
stage: build
|
2022-12-29 09:32:12 +03:00
|
|
|
rules:
|
2022-12-29 14:30:23 +03:00
|
|
|
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
|
|
|
|
- if: $CI_COMMIT_BRANCH && $CI_COMMIT_BRANCH != $CI_DEFAULT_BRANCH
|
|
|
|
changes:
|
|
|
|
- app/**/*
|
|
|
|
- .DEBIAN/**/*
|
2022-12-29 14:26:05 +03:00
|
|
|
- if: $CI_PIPELINE_SOURCE == 'merge_request_event'
|
2022-12-22 12:41:07 +03:00
|
|
|
before_script:
|
2022-12-29 09:32:12 +03:00
|
|
|
- echo "COMMIT=${CI_COMMIT_SHA}" >> version.env
|
2022-12-29 12:49:14 +03:00
|
|
|
- source version.env
|
2022-12-29 09:32:12 +03:00
|
|
|
# install build dependencies
|
2022-12-22 12:41:07 +03:00
|
|
|
- apt-get update -qq && apt-get install -qq -y build-essential
|
|
|
|
# create build directory for .deb sources
|
|
|
|
- mkdir build
|
|
|
|
# copy install instructions
|
2022-12-28 23:40:26 +03:00
|
|
|
- cp -r .DEBIAN build/DEBIAN
|
2022-12-29 00:02:12 +03:00
|
|
|
- chmod -R 0775 build/DEBIAN
|
2022-12-28 09:40:44 +03:00
|
|
|
# copy app into "/usr/share/fastapi-dls" as "/usr/share/fastapi-dls/app" & copy README.md and version.env
|
2022-12-28 10:25:31 +03:00
|
|
|
- mkdir -p build/usr/share/fastapi-dls
|
|
|
|
- cp -r app build/usr/share/fastapi-dls
|
2022-12-28 09:40:44 +03:00
|
|
|
- cp README.md version.env build/usr/share/fastapi-dls
|
2022-12-27 12:04:26 +03:00
|
|
|
# create conf file
|
2022-12-27 12:05:52 +03:00
|
|
|
- mkdir -p build/etc/fastapi-dls
|
2022-12-27 12:04:26 +03:00
|
|
|
- touch build/etc/fastapi-dls/env
|
2022-12-27 12:16:04 +03:00
|
|
|
# cd into "build/"
|
|
|
|
- cd build/
|
2022-12-22 12:41:07 +03:00
|
|
|
script:
|
2022-12-29 14:15:05 +03:00
|
|
|
# set version based on value in "$VERSION" (which is set above from version.env)
|
2022-12-29 12:49:14 +03:00
|
|
|
- sed -i -E 's/(Version\:\s)0.0/\1'"$VERSION"'/g' DEBIAN/control
|
2022-12-29 14:15:05 +03:00
|
|
|
# build
|
2022-12-27 12:16:04 +03:00
|
|
|
- dpkg -b . build.deb
|
2022-12-29 12:49:14 +03:00
|
|
|
- dpkg -I build.deb
|
2022-12-22 12:41:07 +03:00
|
|
|
artifacts:
|
|
|
|
expire_in: 1 week
|
|
|
|
paths:
|
2022-12-27 12:19:35 +03:00
|
|
|
- build/build.deb
|
2022-12-22 12:41:07 +03:00
|
|
|
|
2022-12-28 23:52:19 +03:00
|
|
|
build:pacman:
|
2022-12-28 17:24:04 +03:00
|
|
|
image: archlinux:base-devel
|
2022-12-29 09:32:12 +03:00
|
|
|
interruptible: true
|
2022-12-28 17:24:04 +03:00
|
|
|
stage: build
|
2022-12-29 09:32:12 +03:00
|
|
|
rules:
|
2022-12-29 14:30:23 +03:00
|
|
|
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
|
|
|
|
- if: $CI_COMMIT_BRANCH && $CI_COMMIT_BRANCH != $CI_DEFAULT_BRANCH
|
|
|
|
changes:
|
|
|
|
- app/**/*
|
|
|
|
- .PKGBUILD/**/*
|
2022-12-29 14:26:05 +03:00
|
|
|
- if: $CI_PIPELINE_SOURCE == 'merge_request_event'
|
2022-12-28 17:57:55 +03:00
|
|
|
before_script:
|
2022-12-29 09:32:12 +03:00
|
|
|
- echo "COMMIT=${CI_COMMIT_SHA}" >> version.env
|
|
|
|
# install build dependencies
|
2022-12-28 23:15:32 +03:00
|
|
|
- pacman -Syu --noconfirm git
|
2022-12-29 09:32:12 +03:00
|
|
|
# create a build-user because "makepkg" don't like root user
|
2022-12-28 17:57:55 +03:00
|
|
|
- useradd --no-create-home --shell=/bin/false build && usermod -L build
|
|
|
|
- 'echo "build ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers'
|
|
|
|
- 'echo "root ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers'
|
|
|
|
- chown -R build:build .
|
2022-12-28 23:20:19 +03:00
|
|
|
# move .PKGBUILD contents to root directory
|
|
|
|
- mv .PKGBUILD/* .
|
2022-12-28 17:24:04 +03:00
|
|
|
script:
|
2022-12-28 23:20:19 +03:00
|
|
|
- pwd
|
2022-12-28 23:14:14 +03:00
|
|
|
# download dependencies
|
|
|
|
- source PKGBUILD && pacman -Syu --noconfirm --needed --asdeps "${makedepends[@]}" "${depends[@]}"
|
|
|
|
# build
|
2022-12-28 23:13:20 +03:00
|
|
|
- sudo -u build makepkg -s
|
2022-12-28 23:20:19 +03:00
|
|
|
artifacts:
|
|
|
|
expire_in: 1 week
|
|
|
|
paths:
|
|
|
|
- "*.pkg.tar.zst"
|
2022-12-28 17:24:04 +03:00
|
|
|
|
2022-12-23 15:48:48 +03:00
|
|
|
test:
|
|
|
|
image: python:3.10-slim-bullseye
|
|
|
|
stage: test
|
2022-12-29 09:32:12 +03:00
|
|
|
rules:
|
|
|
|
- if: $CI_COMMIT_BRANCH
|
|
|
|
- if: $CI_PIPELINE_SOURCE == "merge_request_event"
|
2022-12-23 13:24:40 +03:00
|
|
|
variables:
|
|
|
|
DATABASE: sqlite:///../app/db.sqlite
|
2022-12-23 15:48:48 +03:00
|
|
|
before_script:
|
|
|
|
- pip install -r requirements.txt
|
|
|
|
- pip install pytest httpx
|
|
|
|
- mkdir -p app/cert
|
|
|
|
- openssl genrsa -out app/cert/instance.private.pem 2048
|
|
|
|
- openssl rsa -in app/cert/instance.private.pem -outform PEM -pubout -out app/cert/instance.public.pem
|
|
|
|
- cd test
|
|
|
|
script:
|
|
|
|
- pytest main.py
|
|
|
|
|
2022-12-28 16:31:11 +03:00
|
|
|
.test:linux:
|
2022-12-16 15:55:17 +03:00
|
|
|
stage: test
|
2022-12-29 10:00:34 +03:00
|
|
|
rules:
|
2022-12-29 14:30:23 +03:00
|
|
|
- if: $CI_COMMIT_BRANCH && $CI_COMMIT_BRANCH != $CI_DEFAULT_BRANCH
|
|
|
|
changes:
|
2022-12-29 10:00:34 +03:00
|
|
|
- app/**/*
|
2022-12-29 14:30:23 +03:00
|
|
|
- .DEBIAN/**/*
|
|
|
|
- if: $CI_PIPELINE_SOURCE == 'merge_request_event'
|
2022-12-22 12:41:07 +03:00
|
|
|
needs:
|
2022-12-28 17:24:04 +03:00
|
|
|
- job: build:apt
|
2022-12-22 12:41:07 +03:00
|
|
|
artifacts: true
|
2022-12-28 16:31:11 +03:00
|
|
|
variables:
|
|
|
|
DEBIAN_FRONTEND: noninteractive
|
2022-12-22 12:41:07 +03:00
|
|
|
before_script:
|
2022-12-29 09:32:12 +03:00
|
|
|
- apt-get update -qq && apt-get install -qq -y jq curl
|
2022-12-16 15:55:17 +03:00
|
|
|
script:
|
2022-12-22 12:41:07 +03:00
|
|
|
# test installation
|
2022-12-27 12:23:51 +03:00
|
|
|
- apt-get install -q -y ./build/build.deb --fix-missing
|
2022-12-29 09:43:16 +03:00
|
|
|
- openssl req -x509 -newkey rsa:2048 -nodes -out /etc/fastapi-dls/webserver.crt -keyout /etc/fastapi-dls/webserver.key -days 7 -subj "/C=DE/O=GitLab-CI/OU=Test/CN=localhost"
|
2022-12-27 14:40:33 +03:00
|
|
|
# copy example config from GitLab-CI-Variables
|
|
|
|
#- cat ${EXAMPLE_CONFIG} > /etc/fastapi-dls/env
|
|
|
|
# start service in background
|
2022-12-29 09:32:12 +03:00
|
|
|
- cd /usr/share/fastapi-dls/app
|
2022-12-29 09:43:16 +03:00
|
|
|
- uvicorn main:app
|
|
|
|
--host 127.0.0.1 --port 443
|
2022-12-27 14:35:07 +03:00
|
|
|
--app-dir /usr/share/fastapi-dls/app
|
|
|
|
--ssl-keyfile /etc/fastapi-dls/webserver.key
|
2022-12-29 09:43:16 +03:00
|
|
|
--ssl-certfile /etc/fastapi-dls/webserver.crt
|
2022-12-27 14:32:40 +03:00
|
|
|
--proxy-headers &
|
|
|
|
- FASTAPI_DLS_PID=$!
|
2022-12-27 14:35:07 +03:00
|
|
|
- echo "Started service with pid $FASTAPI_DLS_PID"
|
2022-12-27 14:40:33 +03:00
|
|
|
# testing service
|
2022-12-29 12:31:25 +03:00
|
|
|
- if [ "`curl --insecure -s https://127.0.0.1/-/health | jq .status`" != "up" ]; then echo "Success"; else "Error"; fi
|
2022-12-27 14:40:33 +03:00
|
|
|
# cleanup
|
2022-12-27 14:32:40 +03:00
|
|
|
- kill $FASTAPI_DLS_PID
|
2022-12-22 12:41:07 +03:00
|
|
|
- apt-get purge -qq -y fastapi-dls
|
|
|
|
- apt-get autoremove -qq -y && apt-get clean -qq
|
2022-12-16 15:55:17 +03:00
|
|
|
|
2022-12-28 16:31:11 +03:00
|
|
|
test:debian:
|
|
|
|
extends: .test:linux
|
|
|
|
image: debian:bookworm-slim
|
|
|
|
|
|
|
|
test:ubuntu:
|
|
|
|
extends: .test:linux
|
|
|
|
image: ubuntu:22.10
|
|
|
|
|
2022-12-28 23:52:19 +03:00
|
|
|
test:archlinux:
|
|
|
|
image: archlinux:base
|
2022-12-29 09:43:16 +03:00
|
|
|
rules:
|
2022-12-29 14:30:23 +03:00
|
|
|
- if: $CI_COMMIT_BRANCH && $CI_COMMIT_BRANCH != $CI_DEFAULT_BRANCH
|
|
|
|
changes:
|
2022-12-29 09:43:16 +03:00
|
|
|
- app/**/*
|
2022-12-29 14:30:23 +03:00
|
|
|
- .PKGBUILD/**/*
|
|
|
|
- if: $CI_PIPELINE_SOURCE == 'merge_request_event'
|
2022-12-29 09:32:12 +03:00
|
|
|
needs:
|
|
|
|
- job: build:pacman
|
|
|
|
artifacts: true
|
2022-12-28 23:52:19 +03:00
|
|
|
script:
|
2022-12-29 09:32:12 +03:00
|
|
|
- pacman -Sy
|
2022-12-29 12:40:34 +03:00
|
|
|
- pacman -U --noconfirm *.pkg.tar.zst
|
2022-12-28 23:52:19 +03:00
|
|
|
|
2022-12-29 12:44:39 +03:00
|
|
|
.deploy:
|
2022-12-16 15:55:17 +03:00
|
|
|
rules:
|
|
|
|
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
|
2022-12-29 12:44:39 +03:00
|
|
|
- if: $CI_COMMIT_TAG
|
|
|
|
when: never
|
|
|
|
|
|
|
|
deploy:docker:
|
|
|
|
extends: .deploy
|
|
|
|
stage: deploy
|
2022-12-29 14:30:23 +03:00
|
|
|
rules:
|
|
|
|
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
|
2022-12-21 12:48:36 +03:00
|
|
|
before_script:
|
2022-12-21 13:06:09 +03:00
|
|
|
- echo "COMMIT=${CI_COMMIT_SHA}" >> version.env
|
2022-12-21 12:48:36 +03:00
|
|
|
- source version.env
|
2022-12-21 13:11:55 +03:00
|
|
|
- echo "Building docker image for commit ${COMMIT} with version ${VERSION}"
|
2022-12-16 15:55:17 +03:00
|
|
|
script:
|
2022-12-22 12:31:40 +03:00
|
|
|
- echo "GitLab-Registry"
|
|
|
|
- docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
|
|
|
|
- docker build . --tag ${CI_REGISTRY}/${CI_PROJECT_PATH}/${CI_BUILD_REF_NAME}:${VERSION}
|
|
|
|
- docker build . --tag ${CI_REGISTRY}/${CI_PROJECT_PATH}/${CI_BUILD_REF_NAME}:latest
|
|
|
|
- docker push ${CI_REGISTRY}/${CI_PROJECT_PATH}/${CI_BUILD_REF_NAME}:${VERSION}
|
|
|
|
- docker push ${CI_REGISTRY}/${CI_PROJECT_PATH}/${CI_BUILD_REF_NAME}:latest
|
|
|
|
- echo "Docker-Hub"
|
2022-12-20 11:01:31 +03:00
|
|
|
- docker login -u $PUBLIC_REGISTRY_USER -p $PUBLIC_REGISTRY_TOKEN
|
2022-12-21 12:48:36 +03:00
|
|
|
- docker build . --tag $PUBLIC_REGISTRY_USER/${CI_PROJECT_NAME}:${VERSION}
|
2022-12-20 11:08:45 +03:00
|
|
|
- docker build . --tag $PUBLIC_REGISTRY_USER/${CI_PROJECT_NAME}:latest
|
2022-12-21 12:48:36 +03:00
|
|
|
- docker push $PUBLIC_REGISTRY_USER/${CI_PROJECT_NAME}:${VERSION}
|
2022-12-20 11:08:45 +03:00
|
|
|
- docker push $PUBLIC_REGISTRY_USER/${CI_PROJECT_NAME}:latest
|
2022-12-27 14:49:12 +03:00
|
|
|
|
2022-12-28 19:05:59 +03:00
|
|
|
deploy:apt:
|
2022-12-27 15:27:27 +03:00
|
|
|
# doc: https://git.collinwebdesigns.de/help/user/packages/debian_repository/index.md#install-a-package
|
2022-12-29 12:44:39 +03:00
|
|
|
extends: .deploy
|
2022-12-27 14:49:12 +03:00
|
|
|
image: debian:bookworm-slim
|
|
|
|
stage: deploy
|
2022-12-29 14:30:23 +03:00
|
|
|
rules:
|
|
|
|
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
|
2022-12-27 14:49:12 +03:00
|
|
|
needs:
|
2022-12-28 17:24:04 +03:00
|
|
|
- job: build:apt
|
2022-12-27 14:49:12 +03:00
|
|
|
artifacts: true
|
|
|
|
before_script:
|
2022-12-27 15:27:27 +03:00
|
|
|
- apt-get update -qq && apt-get install -qq -y curl lsb-release
|
|
|
|
# create distribution initial
|
|
|
|
- CODENAME=`lsb_release -cs`
|
2022-12-27 15:34:21 +03:00
|
|
|
# create repo if not exists
|
|
|
|
- 'if [ "`curl -s -o /dev/null -w "%{http_code}" --header "JOB-TOKEN: $CI_JOB_TOKEN" -s ${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/debian_distributions/${CODENAME}/key.asc`" != "200" ]; then curl --request POST --header "JOB-TOKEN: $CI_JOB_TOKEN" "${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/debian_distributions?codename=${CODENAME}"; fi'
|
2022-12-27 14:49:12 +03:00
|
|
|
script:
|
|
|
|
# Naming format: <name>_<version>-<release>_<arch>.deb
|
|
|
|
# Version is the version number of the app being packaged
|
|
|
|
# Release number is the version number of the *packaging* itself.
|
|
|
|
# The release number might increment if the package maintainer
|
|
|
|
# updated the packaging, while the version number of the application
|
|
|
|
# being packaged did not change.
|
2022-12-27 14:56:46 +03:00
|
|
|
- BUILD_NAME=build/build.deb # inherited by build-stage
|
|
|
|
- PACKAGE_NAME=`dpkg -I ${BUILD_NAME} | grep "Package:" | awk '{ print $2 }'`
|
|
|
|
- PACKAGE_VERSION=`dpkg -I ${BUILD_NAME} | grep "Version:" | awk '{ print $2 }'`
|
2022-12-27 14:49:12 +03:00
|
|
|
- PACKAGE_ARCH=amd64
|
2022-12-27 16:52:17 +03:00
|
|
|
#- EXPORT_NAME="${PACKAGE_NAME}_${PACKAGE_VERSION}-0_${PACKAGE_ARCH}.deb"
|
|
|
|
- EXPORT_NAME="${PACKAGE_NAME}_${PACKAGE_VERSION}_${PACKAGE_ARCH}.deb"
|
2022-12-27 14:49:12 +03:00
|
|
|
- mv ${BUILD_NAME} ${EXPORT_NAME}
|
|
|
|
- 'echo "PACKAGE_NAME: ${PACKAGE_NAME}"'
|
|
|
|
- 'echo "PACKAGE_VERSION: ${PACKAGE_VERSION}"'
|
|
|
|
- 'echo "PACKAGE_ARCH: ${PACKAGE_ARCH}"'
|
|
|
|
- 'echo "EXPORT_NAME: ${EXPORT_NAME}"'
|
|
|
|
# https://docs.gitlab.com/14.3/ee/user/packages/debian_repository/index.html
|
|
|
|
- URL="${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/packages/debian/${EXPORT_NAME}"
|
|
|
|
- 'echo "URL: ${URL}"'
|
2022-12-27 15:45:31 +03:00
|
|
|
#- 'curl --request PUT --header "JOB-TOKEN: $CI_JOB_TOKEN" --upload-file ${EXPORT_NAME} ${URL}'
|
2022-12-27 23:58:08 +03:00
|
|
|
# using generic-package-registry until debian-registry is GA
|
|
|
|
# https://docs.gitlab.com/ee/user/packages/generic_packages/index.html#publish-a-generic-package-by-using-cicd
|
|
|
|
- 'curl --header "JOB-TOKEN: $CI_JOB_TOKEN" --upload-file ${EXPORT_NAME} "${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/packages/generic/${PACKAGE_NAME}/${PACKAGE_VERSION}/${EXPORT_NAME}"'
|
2022-12-28 23:52:19 +03:00
|
|
|
|
|
|
|
deploy:pacman:
|
2022-12-29 12:44:39 +03:00
|
|
|
extends: .deploy
|
2022-12-28 23:52:19 +03:00
|
|
|
image: archlinux:base-devel
|
|
|
|
stage: deploy
|
2022-12-29 14:30:23 +03:00
|
|
|
rules:
|
|
|
|
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
|
2022-12-28 23:52:19 +03:00
|
|
|
needs:
|
|
|
|
- job: build:pacman
|
|
|
|
artifacts: true
|
|
|
|
script:
|
|
|
|
- source .PKGBUILD/PKGBUILD
|
2022-12-29 14:58:01 +03:00
|
|
|
- source version.env
|
2022-12-28 23:52:19 +03:00
|
|
|
# fastapi-dls-1.0-1-any.pkg.tar.zst
|
2022-12-29 14:58:01 +03:00
|
|
|
- BUILD_NAME=${pkgname}-${VERSION}-${pkgrel}-any.pkg.tar.zst
|
2022-12-28 23:52:19 +03:00
|
|
|
- PACKAGE_NAME=${pkgname}
|
2022-12-29 14:58:01 +03:00
|
|
|
- PACKAGE_VERSION=${VERSION}
|
2022-12-28 23:52:19 +03:00
|
|
|
- PACKAGE_ARCH=any
|
|
|
|
- EXPORT_NAME=${BUILD_NAME}
|
|
|
|
- 'echo "PACKAGE_NAME: ${PACKAGE_NAME}"'
|
|
|
|
- 'echo "PACKAGE_VERSION: ${PACKAGE_VERSION}"'
|
|
|
|
- 'echo "PACKAGE_ARCH: ${PACKAGE_ARCH}"'
|
|
|
|
- 'echo "EXPORT_NAME: ${EXPORT_NAME}"'
|
|
|
|
- 'curl --header "JOB-TOKEN: $CI_JOB_TOKEN" --upload-file ${EXPORT_NAME} "${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/packages/generic/${PACKAGE_NAME}/${PACKAGE_VERSION}/${EXPORT_NAME}"'
|
2022-12-29 14:47:51 +03:00
|
|
|
|
|
|
|
release:
|
|
|
|
image: registry.gitlab.com/gitlab-org/release-cli:latest
|
|
|
|
stage: .post
|
|
|
|
rules:
|
|
|
|
- if: $CI_COMMIT_TAG
|
|
|
|
when: never
|
|
|
|
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
|
|
|
|
before_script:
|
2022-12-29 15:14:16 +03:00
|
|
|
- set -a # make variables from "source" command available to release-cli
|
2022-12-29 14:47:51 +03:00
|
|
|
- source version.env
|
|
|
|
script:
|
|
|
|
- echo "Running release-job for $VERSION"
|
2022-12-29 15:14:16 +03:00
|
|
|
after_script:
|
|
|
|
- set +a
|
2022-12-29 14:47:51 +03:00
|
|
|
release:
|
|
|
|
name: $CI_PROJECT_TITLE $version
|
|
|
|
description: Release of $CI_PROJECT_TITLE version $VERSION
|
|
|
|
tag_name: $VERSION
|
|
|
|
ref: $CI_COMMIT_SHA
|
|
|
|
assets:
|
|
|
|
links:
|
|
|
|
- name: 'Package Registry'
|
|
|
|
url: 'https://git.collinwebdesigns.de/oscar.krause/fastapi-dls/-/packages'
|
|
|
|
- name: 'Container Registry'
|
|
|
|
url: 'https://git.collinwebdesigns.de/oscar.krause/fastapi-dls/container_registry/40'
|