BlueGit

timfa frameworkv3

Files

frameworkv3 / .gitlab-ci.yml

.gitlab-ci.yml

Update .gitlab-ci.yml file
timfa Tim Falken · pushed by timfa · 2 years ago
c70e4e75 History
.gitlab-ci.yml 1.2 KiB Download Raw
1# .gitlab-ci.yml
2
3# Define stages for the pipeline
4stages:
5 - deploy
6
7# Define a job that runs when something is pushed to the master branch
8deploy_job:
9 stage: deploy
10 script:
11 - apt-get update -qy
12 - chmod +x ./glbuild.sh # Ensure the script is executable
13 - ./glbuild.sh # Execute the script
14 artifacts:
15 paths:
16 - js/framework.js
17 only:
18 - master # Run this job only when changes are pushed to the master branch
19
20release_job:
21 stage: release
22 image: registry.gitlab.com/gitlab-org/release-cli:latest
23 rules:
24 - if: $CI_COMMIT_TAG
25 when: never # Do not run this job when a tag is created manually
26 - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH # Run this job when commits are pushed or merged to the default branch
27 script:
28 - echo "running release_job for $TAG"
29 release:
30 name: 'v0.$CI_PIPELINE_IID'
31 tag_name: 'v0.$CI_PIPELINE_IID' # The version is incremented per pipeline.
32 description: 'v0.$CI_PIPELINE_IID'
33 ref: '$CI_COMMIT_SHA' # The tag is created from the pipeline SHA.
34 only:
35 - master # Run this job only when changes are pushed to the master branch