Update .gitlab-ci.yml file
This commit is contained in:
parent
b9c3e93564
commit
77b67aa949
1 changed files with 22 additions and 8 deletions
|
|
@ -12,6 +12,9 @@
|
||||||
# see https://hub.docker.com/_/gcc/
|
# see https://hub.docker.com/_/gcc/
|
||||||
|
|
||||||
image: gcc
|
image: gcc
|
||||||
|
stages:
|
||||||
|
- build
|
||||||
|
- release
|
||||||
|
|
||||||
build:
|
build:
|
||||||
stage: build
|
stage: build
|
||||||
|
|
@ -24,14 +27,25 @@ build:
|
||||||
- cmake --build .
|
- cmake --build .
|
||||||
artifacts:
|
artifacts:
|
||||||
paths:
|
paths:
|
||||||
- c_make
|
- c_net
|
||||||
# depending on your build setup it's most likely a good idea to cache outputs to reduce the build time
|
reports:
|
||||||
# cache:
|
dotenv: CI_JOB_ID.env
|
||||||
# paths:
|
|
||||||
# - "*.o"
|
|
||||||
|
|
||||||
|
|
||||||
deploy:
|
|
||||||
stage: deploy
|
release:
|
||||||
|
stage: release
|
||||||
|
needs:
|
||||||
|
- build
|
||||||
|
release:
|
||||||
|
tag_name: $CI_COMMIT_SHORT_SHA'
|
||||||
|
description: "latest"
|
||||||
|
|
||||||
|
assets:
|
||||||
|
links:
|
||||||
|
- name: c_net
|
||||||
|
url: '${CI_PROJECT_URL}/-/jobs/${BUILD_JOB_ID}/artifacts/file/c_net'
|
||||||
|
|
||||||
script: echo "Define your deployment script!"
|
script: echo "Define your deployment script!"
|
||||||
environment: production
|
|
||||||
|
|
||||||
|
|
|
||||||
Reference in a new issue