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