-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathcodefresh.yml
39 lines (35 loc) · 870 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
# Examples: https://codefresh.io/docs/docs/yaml-examples/examples
#
# CF_BRANCH value is auto set when pipeline is triggered
# - Learn more at codefresh.io/docs/docs/codefresh-yaml/variables
version: '1.0'
stages:
- clone
- build
- push
steps:
clone:
title: 'Cloning repository'
type: git-clone
stage: clone
repo: 'ChristianOellers/CLI-Strike'
revision: '${{CF_BRANCH}}'
git: github
build:
title: 'Building Docker image'
type: build
stage: build
tag: '${{CF_BRANCH_TAG_NORMALIZED}}'
image_name: theremotecoder/cli-strike
working_directory: ${{clone}}
dockerfile: Dockerfile
registry: dockerhub
disable_push: true
push:
title: 'Pushing Docker image'
type: push
stage: push
tag: 'latest'
image_name: theremotecoder/cli-strike
registry: dockerhub
candidate: ${{build}}