-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathporter.yaml
65 lines (58 loc) · 1.55 KB
/
porter.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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
# This is the configuration for Porter
# You must define steps for each action, but the rest is optional
# See https://porter.sh/author-bundles for documentation on how to configure your bundle
# Uncomment out the sections below to take full advantage of what Porter can do!
name: docker-example
version: 0.1.0
description: "An example Porter configuration"
# TODO: update the registry to your own, e.g. myregistry/porter-hello:v0.1.0
tag: gmadhok/mixin-test:v1.0
# Uncomment the line below to use a template Dockerfile for your invocation image
#dockerfile: Dockerfile.tmpl
credentials:
- name: DOCKER_USERNAME
env: DOCKER_USERNAME
- name: DOCKER_PASSWORD
env: DOCKER_PASSWORD
mixins:
- docker
install:
- docker:
description: "Pull image"
pull:
name: carolynvs/whalesayd
tag: latest
- docker:
description: "Run whalesayd image"
run:
name: testmixin
image: carolynvs/whalesayd
detach: true
ports:
- host: 8080
container: 8080
- docker:
description: "Build image"
build:
tag: "gmadhok/mixin-test:v1.0"
file: Dockerfile-cookies
upgrade:
- docker:
description: "Login to docker"
login:
- docker:
description: "Push image"
push:
name: gmadhok/mixin-test
tag: v1.0
- docker:
description: "Upgrade image"
pull:
name: docker/whalesay
tag: latest
uninstall:
- docker:
description: "Uninstall container"
remove:
container: testmixin
force: true