-
Notifications
You must be signed in to change notification settings - Fork 3
/
codefresh.yml
42 lines (38 loc) · 967 Bytes
/
codefresh.yml
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
version: "1.0"
stages:
- "clone"
- "build"
- "shared-volume"
steps:
clone:
title: "Cloning repository"
type: "git-clone"
repo: "codefreshdemo/cf-example-shared-volumes-between-builds"
revision: "master"
stage: "clone"
build_image:
title: "Building image"
type: "build"
image_name: "sample-app"
working_directory: "${{clone}}"
tag: "demo"
dockerfile: "Dockerfile"
stage: "build"
copy_to_shared_volume:
title: "Copy file to shared volume"
type: "freestyle"
image: alpine:3.9
working_directory: "${{clone}}"
commands:
- ls -l /codefresh/volume/
- cp ./artifact/artifact.example /codefresh/volume/artifact.example
stage: "shared-volume"
list_shared_volume:
title: "List shared volume files"
type: "freestyle"
image: alpine:3.9
working_directory: "${{clone}}"
commands:
- pwd
- ls -l /codefresh/volume
stage: "shared-volume"