Update .gitlab-ci.yml file

This commit is contained in:
amevarashi 2024-04-28 17:19:35 +00:00
parent e643833472
commit 818d288cc5
1 changed files with 7 additions and 6 deletions

View File

@ -121,15 +121,16 @@ build:
release_dev:
stage: deploy
image: registry.gitlab.com/gitlab-org/release-cli:latest
# image: registry.gitlab.com/gitlab-org/release-cli:latest # this image currently is amd64 only
image: alpine:latest
# rules:
# - if: $CI_COMMIT_TAG
# when: never # Do not run this job when a tag is created manually
# - if: $CI_COMMIT_BRANCH == "ci-test" # Run this job when commits are pushed or merged to the dev branch
script:
- 'echo "running release_job for $CI_COMMIT_SHA"'
# release: # See https://docs.gitlab.com/ee/ci/yaml/#release for available properties
# tag_name: 'test-build-$CI_PIPELINE_IID' # The version is incremented per pipeline.
# description: 'Automated release based on commit CI_COMMIT_SHA'
# ref: '$CI_COMMIT_BRANCH' # The tag is created from the pipeline SHA.
- 'apk add gitlab-release-cli'
release: # See https://docs.gitlab.com/ee/ci/yaml/#release for available properties
tag_name: 'test-build-$CI_PIPELINE_IID' # The version is incremented per pipeline.
description: 'Automated release based on commit CI_COMMIT_SHA'
ref: '$CI_COMMIT_SHA' # The tag is created from the pipeline SHA.