Skip to content

Commit 9a6dd03

Browse files
committed
first gitlab pipeline
1 parent 69a1cdc commit 9a6dd03

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

.gitlab-ci.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
build-job:
2+
stage: build
3+
script:
4+
- echo "Hello, $GITLAB_USER_LOGIN!"
5+
6+
test-job1:
7+
stage: test
8+
script:
9+
- echo "This job tests something"
10+
11+
test-job2:
12+
stage: test
13+
script:
14+
- echo "This job tests something, but takes more time than test-job1."
15+
- echo "After the echo commands complete, it runs the sleep command for 20 seconds"
16+
- echo "which simulates a test that runs 20 seconds longer than test-job1"
17+
- sleep 20
18+
19+
deploy-prod:
20+
stage: deploy
21+
script:
22+
- echo "This job deploys something from the $CI_COMMIT_BRANCH branch."
23+
environment: production

0 commit comments

Comments
 (0)