Update .gitlab-ci.yml file
@@ -2,12 +2,12 @@
2
2
3
3
# Define stages for the pipeline
4
4
stages:
5
- deploy
5
- build
6
6
- release
7
7
8
8
# Define a job that runs when something is pushed to the master branch
9
deploy_job:
10
stage: deploy
9
build_job:
10
stage: build
11
11
script:
12
12
- apt-get update -qy
13
13
- chmod +x ./glbuild.sh # Ensure the script is executable
@@ -28,5 +28,9 @@ release_job:
28
28
tag_name: 'v0.$CI_PIPELINE_IID' # The version is incremented per pipeline.
29
29
description: 'v0.$CI_PIPELINE_IID'
30
30
ref: '$CI_COMMIT_SHA' # The tag is created from the pipeline SHA.
31
assets:
32
links:
33
- name: 'Framework JS file'
34
url: '$CI_SERVER_URL/$CI_PROJECT_PATH/-/jobs/$JOB_ID/artifacts/download'
31
35
only:
32
36
- master # Run this job only when changes are pushed to the master branch
@@ -2,12 +2,12 @@2
2
3
# Define stages for the pipeline3
# Define stages for the pipeline4
stages:4
stages:5
- deploy5
- build6
- release6
- release7
7
8
# Define a job that runs when something is pushed to the master branch8
# Define a job that runs when something is pushed to the master branch9
deploy_job:9
build_job:10
stage: deploy10
stage: build11
script:11
script:12
- apt-get update -qy12
- apt-get update -qy13
- chmod +x ./glbuild.sh # Ensure the script is executable13
- chmod +x ./glbuild.sh # Ensure the script is executable@@ -28,5 +28,9 @@ release_job:28
tag_name: 'v0.$CI_PIPELINE_IID' # The version is incremented per pipeline.28
tag_name: 'v0.$CI_PIPELINE_IID' # The version is incremented per pipeline.29
description: 'v0.$CI_PIPELINE_IID'29
description: 'v0.$CI_PIPELINE_IID'30
ref: '$CI_COMMIT_SHA' # The tag is created from the pipeline SHA.30
ref: '$CI_COMMIT_SHA' # The tag is created from the pipeline SHA.31
assets:32
links:33
- name: 'Framework JS file'34
url: '$CI_SERVER_URL/$CI_PROJECT_PATH/-/jobs/$JOB_ID/artifacts/download'31
only:35
only:32
- master # Run this job only when changes are pushed to the master branch36
- master # Run this job only when changes are pushed to the master branch