forked from codefresh-contrib/gcloud-storage-sample-app
-
Notifications
You must be signed in to change notification settings - Fork 0
/
codefresh-download.yml
43 lines (40 loc) · 973 Bytes
/
codefresh-download.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"
- "download"
- "build"
- "push"
steps:
clone:
title: "Cloning main repository..."
type: "git-clone"
stage: "clone"
arguments:
repo: "codefresh-contrib/gcloud-storage-sample-app"
git: "github"
revision: "master"
download:
title: "Downloading dependency lib from GS..."
type: "freestyle"
stage: "download"
working_directory: ${{clone}}
arguments:
image: "google/cloud-sdk:slim"
commands:
- gsutil cp gs://anna-demo-bucket/scala-library-2.12.2.jar .
build:
title: "Building docker image..."
type: "build"
stage: "build"
working_directory: ${{clone}}
arguments:
image_name: "annabaker/gcloud-storage-sample-app"
tag: "master"
push_to_my_registry:
stage: "push"
type: "push"
title: "Pushing to external registry..."
arguments:
candidate: ${{build}}
tag: '1.0.0'
registry: "dockerhub"