Skip to content

Commit 15be2a5

Browse files
committed
ci(gitlab): Generate sample artifacts for testing
1 parent 9b8af64 commit 15be2a5

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

.gitlab/workflows/sample.yml

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,16 @@
11
hello-world:
22
stage: test
3-
script:
4-
- echo "Hello, World from GitLab CI!"
53
rules:
64
- if: $CI_PIPELINE_SOURCE == "push"
5+
- if: $CI_PIPELINE_SOURCE == "web"
6+
- if: $CI_PIPELINE_SOURCE == "trigger"
7+
variables:
8+
PIPELINE_TRIGGER_TOKEN: $CI_PIPELINE_TRIGGER_TOKEN
9+
script:
10+
- echo "Hello, World from GitLab CI!"
11+
- echo "Hello World!" > sample_artifact.txt
12+
artifacts:
13+
name: "sample-artifact"
14+
paths:
15+
- sample_artifact.txt
16+
expire_in: 1 day

0 commit comments

Comments
 (0)