fix: properly run script

This commit is contained in:
s3lph 2023-11-13 04:10:22 +01:00
parent 19963ed238
commit 4990e609d2
Signed by: s3lph
GPG key ID: 0AA29A52FB33CFB5

View file

@ -22,8 +22,9 @@ runs:
using: docker using: docker
image: docker://gcr.io/kaniko-project/executor:debug image: docker://gcr.io/kaniko-project/executor:debug
entrypoint: /bin/sh entrypoint: /bin/sh
steps: args:
- run: | - -c
- |
mkdir -p /kaniko/.docker mkdir -p /kaniko/.docker
echo '{"auths":{"${{ inputs.registry }}":{"auth":"'$(printf "%s:%s" "${{ inputs.username }}" "${{ inputs.password }}" | base64 | tr -d '\n')'"}}}' > /kaniko/.docker/config.json echo '{"auths":{"${{ inputs.registry }}":{"auth":"'$(printf "%s:%s" "${{ inputs.username }}" "${{ inputs.password }}" | base64 | tr -d '\n')'"}}}' > /kaniko/.docker/config.json
cat > /tmp/Dockerfile <<EOF cat > /tmp/Dockerfile <<EOF