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. - repository: Required. The repository of the image.
- tag: Optional. The tag for the image, default: `latest` - tag: Optional. The tag for the image, default: `latest`
- additional_tags: Optional. Path to a file containing one additional tag per line. - 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 - platform: Optional. A comma seperated list of target platforms, default: current platform
- context: The context with which to build. - context: The context with which to build.
- manual: Optional. Don't use params and instead supply all arguments via the command line, default: `false` - 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 type: registry-image
source: source:
repository: redxef/concourse-buildkit repository: redxef/concourse-buildkit
tag: v0.2.1
inputs: inputs:
- name: source - name: source
path: . path: .

View file

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