From 8c67048868cb0f54e565a6b91c7a2bccf93bb77a Mon Sep 17 00:00:00 2001 From: Hector Date: Thu, 22 Jun 2023 21:52:31 +0000 Subject: [PATCH] ci: fix release step script (!101) * Fix the yaml config for the release step to handle a multi-line command https://gitlab.com/hectorjsmith/fail2ban-prometheus-exporter/-/merge_requests/101 --- .gitlab-ci.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index a7e3c55..33a5442 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -54,8 +54,8 @@ release: GIT_DEPTH: 0 rules: - if: $CI_COMMIT_TAG =~ /^v.*$/ - script: - - docker run --rm --privileged \ + script: | + docker run --rm --privileged \ -v $PWD:/go/src/gitlab.com/hectorjsmith/fail2ban-prometheus-exporter \ -w /go/src/gitlab.com/hectorjsmith/fail2ban-prometheus-exporter \ -v /var/run/docker.sock:/var/run/docker.sock \