From 3641832ce8bdab37620e75e7b49d520bf556f202 Mon Sep 17 00:00:00 2001 From: redxef Date: Mon, 29 Aug 2022 16:17:02 +0200 Subject: [PATCH] Remove push flag, output as oci tarball. --- README.md | 2 +- ci/pipeline.yml | 1 + entrypoint.sh | 6 +++--- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index f8a27e5..136dcfe 100644 --- a/README.md +++ b/README.md @@ -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` diff --git a/ci/pipeline.yml b/ci/pipeline.yml index 54e9a5e..b124332 100644 --- a/ci/pipeline.yml +++ b/ci/pipeline.yml @@ -48,6 +48,7 @@ jobs: type: registry-image source: repository: redxef/concourse-buildkit + tag: v0.2.1 inputs: - name: source path: . diff --git a/entrypoint.sh b/entrypoint.sh index 359d7ca..8ac19e7 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -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