From 0c34cadf97f2bf3d24c22a6f55258433ba22934a Mon Sep 17 00:00:00 2001 From: zachmann Date: Mon, 12 Feb 2024 11:10:49 +0100 Subject: [PATCH] [ci] refactor ci --- .gitlab-ci-scripts/release.sh | 8 -------- .gitlab-ci.yml | 6 +++++- 2 files changed, 5 insertions(+), 9 deletions(-) delete mode 100755 .gitlab-ci-scripts/release.sh diff --git a/.gitlab-ci-scripts/release.sh b/.gitlab-ci-scripts/release.sh deleted file mode 100755 index 8f492297..00000000 --- a/.gitlab-ci-scripts/release.sh +++ /dev/null @@ -1,8 +0,0 @@ -#!/bin/sh - -set -e -if [ -z "$CI_COMMIT_TAG" ]; then .gitlab-ci-scripts/set-prerel-version.sh; fi; -.gitlab-ci-scripts/goreleaser.sh -.gitlab-ci-scripts/upload.sh - -curl -d "repo=github.com/oidc-mytoken/server" https://goreportcard.com/checks diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index aa9cda24..3b47abbe 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -84,7 +84,11 @@ prerelease: before_script: - echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin "$DOCKER_REGISTRY" script: - - .gitlab-ci-scripts/release.sh + - if [ -z "$CI_COMMIT_TAG" ]; then .gitlab-ci-scripts/set-prerel-version.sh; fi; + - .gitlab-ci-scripts/goreleaser.sh + - .gitlab-ci-scripts/upload.sh + after_script: + - curl -d "repo=github.com/oidc-mytoken/server" https://goreportcard.com/checks deploy-dev: stage: deploy