-
Notifications
You must be signed in to change notification settings - Fork 34
/
test_application.gocd.yaml
38 lines (38 loc) · 1.09 KB
/
test_application.gocd.yaml
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
format_version: 3
pipelines:
test_application:
group: sample
label_template: ${COUNT}
lock_behavior: unlockWhenFinished
display_order: 2
environment_variables:
materials:
upstream:
pipeline: build_and_publish_image
stage: build_and_publish_image
name: upstream
stages:
- test_app_image:
fetch_materials: true
keep_artifacts: false
clean_workspace: false
approval:
type: success
jobs:
test_app_image:
timeout: 0
elastic_profile_id: demo-app
tasks:
- fetch:
artifact_id: bulletin-board
pipeline: build_and_publish_image
stage: build_and_publish_image
job: build_image
artifact_origin: external
run_if: passed
- exec:
arguments:
- -c
- docker run $DOCKERHUB_USERNAME/bulletin-board:$GO_DEPENDENCY_LABEL_UPSTREAM npm test
command: /bin/bash
run_if: passed