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
b4650a92 History
.gitlab-ci.yml 953 B 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 script:
24 - echo "running release_job for $TAG"
25 release:
26 name: 'v0.$CI_PIPELINE_IID'
27 tag_name: 'v0.$CI_PIPELINE_IID' # The version is incremented per pipeline.
28 description: 'v0.$CI_PIPELINE_IID'
29 ref: '$CI_COMMIT_SHA' # The tag is created from the pipeline SHA.
30 only:
31 - master # Run this job only when changes are pushed to the master branch