-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgitlab-ci.sh
More file actions
55 lines (42 loc) · 994 Bytes
/
gitlab-ci.sh
File metadata and controls
55 lines (42 loc) · 994 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
##############################
### GitLab runner on MacOS ###
##############################
## Install and use GitaLab Runner
## Install GitLab Runner
## Register it
## Start the Runner
## I installed it with recommended way
## Registered it
## And now ready to start
## Configure GitLab CI/CD
## Add .gitlab-ci.yml to the project's root folder
## .gitlab-ci.yml
demo-job-1:
tags:
- avocado: #tags memtioned when runner registered
script:
- echo 'Hello World! YupYup!'
## Looks like everyhing is ready
## And the only thing left is to make a change in our code
#########################
### Some YML examples ###
#########################
stages:
- test
- build
- deploy
test:
stage: test
script: echo "Running tests"
build:
stage: build
script: echo "Building the app"
deploy_staging:
stage: deploy
script:
- echo "Deploy to staging server"
environment:
name: staging
url: https://staging.example.com
only:
- master