Skip to content
Snippets Groups Projects
Commit ab5b5de8 authored by schnarkus's avatar schnarkus
Browse files

rmv interpolation

parent 8349042c
No related branches found
No related tags found
No related merge requests found
Pipeline #59212 failed
---
workflow:
rules:
- if: ${CI_PIPELINE_SOURCE} == "merge_request_event" || (${CI_PIPELINE_SOURCE} == "push" && (${CI_COMMIT_BRANCH} == "main" || ${CI_COMMIT_BRANCH} == "stable"))
- if: $CI_PIPELINE_SOURCE == "merge_request_event" || ($CI_PIPELINE_SOURCE == "push" && ($CI_COMMIT_BRANCH == "main" || $CI_COMMIT_BRANCH == "stable"))
when: always
- when: never
variables:
version: 0.0.${CI_PIPELINE_IID}
version: 0.0.$CI_PIPELINE_IID
stable_branch: main
release_tag_prefix: v
stages:
......@@ -22,7 +22,7 @@ test_job:
build_job:
stage: build
rules:
- if: ${CI_COMMIT_REF_NAME} =~ /stable/
- if: $CI_COMMIT_REF_NAME =~ /stable/
when: always
image: public.ecr.aws/docker/library/golang:1.21
parallel:
......@@ -43,7 +43,7 @@ build_job:
publish_job:
stage: publish
rules:
- if: ${CI_COMMIT_REF_NAME} =~ /stable/
- if: $CI_COMMIT_REF_NAME =~ /stable/
when: always
image: public.ecr.aws/docker/library/alpine:latest
tags:
......@@ -54,9 +54,9 @@ publish_job:
- apk add --no-cache curl
script: >
for file in $(ls webservice_*); do
curl --header "JOB-TOKEN: ${CI_JOB_TOKEN}" \
curl --header "JOB-TOKEN: $CI_JOB_TOKEN" \
--upload-file "./$file" \
"${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/packages/generic/artifacts/${version}/$file"
"$CI_API_V4_URL/projects/$CI_PROJECT_ID/packages/generic/artifacts/$version/$file"
done
job_tag_stable_branch:
stage: tag
......@@ -68,5 +68,5 @@ job_tag_stable_branch:
before_script:
- apk add --no-cache git
script:
- git tag "${release_tag_prefix}${version}"
- git push origin "${release_tag_prefix}${version}"
- git tag "$release_tag_prefix$version"
- git push origin "$release_tag_prefix$version"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment