-
Notifications
You must be signed in to change notification settings - Fork 1
/
synthetic-infra-pong.yaml
45 lines (45 loc) · 1.29 KB
/
synthetic-infra-pong.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
39
40
41
42
43
44
45
format_version: 10
pipelines:
synthetic-infra-pong:
group: sample
label_template: ${COUNT}
lock_behavior: none
display_order: -1
materials:
git-589ea36:
git: https://github.com/hoyle1974/synthetic_infra.git
shallow_clone: false
auto_update: true
branch: main
stages:
- build:
fetch_materials: true
keep_artifacts: false
clean_workspace: false
approval:
type: success
allow_only_on_success: false
jobs:
build-pong:
elastic_profile_id: buildah
timeout: 0
artifacts:
tasks:
- exec:
arguments:
- -c
- buildah bud -t pong:${GO_PIPELINE_LABEL} -f Dockerfile.pong .
command: /bin/bash
run_if: passed
- exec:
arguments:
- -c
- buildah login -u jstrohm -p ${DOCKER_PASSWORD} docker.io
command: /bin/bash
run_if: passed
- exec:
arguments:
- -c
- buildah push pong:${GO_PIPELINE_LABEL} docker://jstrohm/pong:${GO_PIPELINE_LABEL}
command: /bin/bash
run_if: passed