-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild-and-push-image.yml
More file actions
45 lines (43 loc) · 1.12 KB
/
build-and-push-image.yml
File metadata and controls
45 lines (43 loc) · 1.12 KB
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
---
resources:
# The repo with our Dockerfile
- name: concourse-examples
type: git
icon: github
source:
uri: https://github.com/concourse/examples.git
branch: master
- name: concourse-image
type: registry-image
icon: docker
source:
repository: containers.instana.io/instana/concourse-tutorial
tag: latest
username: ((containers-instana-io-creds.username))
password: ((containers-instana-io-creds.password))
jobs:
- name: build-and-push-image
plan:
- get: concourse-examples
- task: build-task-image
privileged: true
config:
platform: linux
image_resource:
type: registry-image
source:
# Check out the README for oci-build-task at
# https://github.com/concourse/oci-build-task
repository: concourse/oci-build-task
inputs:
- name: concourse-examples
outputs:
- name: image
params:
CONTEXT: concourse-examples/Dockerfiles/simple
UNPACK_ROOTFS: "true" # only needed if using image in a future step
run:
path: build
- put: concourse-image
params:
image: image/image.tar