Skip to content
Snippets Groups Projects
Commit 1577fc83 authored by Nicola Jordan's avatar Nicola Jordan
Browse files

build and release when tag is added

parent efa474e0
No related branches found
No related tags found
No related merge requests found
Pipeline #257772 passed with stage
in 1 minute and 12 seconds
......@@ -2,6 +2,7 @@ image: golang:latest
stages:
- build
- release
format:
stage: build
......@@ -72,7 +73,15 @@ sonarcloud-check:
script:
- sonar-scanner
# deploy:
# stage: deploy
# script: echo "Define your deployment script!"
# environment: production
release_job:
stage: release
rules:
- if: $CI_COMMIT_TAG # Run this job when a tag is created
script:
- ./go-executable-build.sh boilr boilr.go
release: # See https://docs.gitlab.com/ee/ci/yaml/#release for available properties
tag_name: '$CI_COMMIT_TAG'
description: '$CI_COMMIT_TAG'
artifacts:
paths:
- build/*
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