Skip to content

Commit

Permalink
Correct GitLab CI rule
Browse files Browse the repository at this point in the history
  • Loading branch information
jboillot committed Jul 19, 2022
1 parent cc50604 commit a132152
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,6 @@ image: $CI_REGISTRY/server/server-node-docker/node-docker-ci-16:latest
extends: .base_job
variables:
VAULT_AUTH_ROLE: ci_server_prod
tags:
- protected
only:
refs:
- main
- /^v.*$/

stages:
- deploy
Expand Down Expand Up @@ -46,4 +40,4 @@ npm_publish:
- npm config set '//registry.npmjs.org/:_authToken' "${NPM_TOKEN}"
- ./npmPublish.sh
rules:
- if: $CI_COMMIT_REF_NAME == $CI_DEFAULT_BRANCH && $CI_COMMIT_TAG
- if: '$CI_COMMIT_REF_PROTECTED == "true" && $CI_COMMIT_TAG =~ /^v\d+.\d+.\d+$/'

0 comments on commit a132152

Please sign in to comment.