forked from codefresh-contrib/docker-service
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathexample.yml
More file actions
28 lines (22 loc) · 713 Bytes
/
example.yml
File metadata and controls
28 lines (22 loc) · 713 Bytes
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
version: '1.0'
steps:
create-my-docker:
image: codefreshplugins/docker-service
commands:
- docker-service-create --driver amazonec2 --amazonec2-instance-type m4.large my-docker
build-on-my-docker:
image: codefreshplugins/docker-service
commands:
- docker build -t mycompany/repo:${{CF_BRANCH}} ${{CF_VOLUME_PATH}}/
run-on-my-docker:
image: codefreshplugins/docker-service
commands:
- docker run -d mycompany/repo:${{CF_BRANCH}}
delete-my-docker:
image: codefreshplugins/docker-service
commands:
- docker-service-delete my-docker
clean:
image: codefreshplugins/docker-service
commands:
- docker-service-clean