From 19963ed2382f19a32a36f0e35ccd4e196d1c687a Mon Sep 17 00:00:00 2001 From: s3lph Date: Mon, 13 Nov 2023 03:34:04 +0100 Subject: [PATCH] feat: initial commit --- action.yml | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 action.yml diff --git a/action.yml b/action.yml new file mode 100644 index 0000000..7b71974 --- /dev/null +++ b/action.yml @@ -0,0 +1,32 @@ +--- + +name: Kaniko +description: Build a container image using Kaniko +inputs: + Dockerfile: + description: The Dockerfile to pass to Kaniko + required: true + image: + description: Name and tag under which to upload the image + required: true + registry: + description: Domain of the registry. Should be the same as the first path component of the tag. + required: true + username: + description: Username for the container registry + required: false + password: + description: Password for the container registry + required: false +runs: + using: docker + image: docker://gcr.io/kaniko-project/executor:debug + entrypoint: /bin/sh + steps: + - run: | + mkdir -p /kaniko/.docker + echo '{"auths":{"${{ inputs.registry }}":{"auth":"'$(printf "%s:%s" "${{ inputs.username }}" "${{ inputs.password }}" | base64 | tr -d '\n')'"}}}' > /kaniko/.docker/config.json + cat > /tmp/Dockerfile <