Remove push flag, output as oci tarball.

This commit is contained in:
redxef 2022-08-29 16:17:02 +02:00
parent 7103d4760d
commit 3641832ce8
Signed by: redxef
GPG key ID: 7DAC3AA211CBD921
3 changed files with 5 additions and 4 deletions

View file

@ -10,7 +10,7 @@ Currently only the docker registry is supported.
- repository: Required. The repository of the image.
- tag: Optional. The tag for the image, default: `latest`
- additional_tags: Optional. Path to a file containing one additional tag per line.
- push: Optional. Should the built image be pushed, default: `false`
- dest: Required. The output path for the oci image.
- platform: Optional. A comma seperated list of target platforms, default: current platform
- context: The context with which to build.
- manual: Optional. Don't use params and instead supply all arguments via the command line, default: `false`

View file

@ -48,6 +48,7 @@ jobs:
type: registry-image
source:
repository: redxef/concourse-buildkit
tag: v0.2.1
inputs:
- name: source
path: .

View file

@ -70,8 +70,8 @@ build() {
if [ -z "$tag" ]; then
tag=latest
fi
if [ -z "$push" ]; then
push=false
if [ -z "$dest" ]; then
fail "missing argument: dest"
fi
if [ -z "$context" ]; then
context=.
@ -98,7 +98,7 @@ build() {
--local context="$context" \
--local dockerfile="$context" \
$platform \
--output type=image,\"name="$final_tag"\",push="$push"
--output type=oci,dest=\"$dest\"
}
if [ -n "$username" ]; then