fix: properly run script
This commit is contained in:
parent
19963ed238
commit
4990e609d2
1 changed files with 9 additions and 8 deletions
17
action.yml
17
action.yml
|
@ -22,11 +22,12 @@ 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
|
- |
|
||||||
echo '{"auths":{"${{ inputs.registry }}":{"auth":"'$(printf "%s:%s" "${{ inputs.username }}" "${{ inputs.password }}" | base64 | tr -d '\n')'"}}}' > /kaniko/.docker/config.json
|
mkdir -p /kaniko/.docker
|
||||||
cat > /tmp/Dockerfile <<EOF
|
echo '{"auths":{"${{ inputs.registry }}":{"auth":"'$(printf "%s:%s" "${{ inputs.username }}" "${{ inputs.password }}" | base64 | tr -d '\n')'"}}}' > /kaniko/.docker/config.json
|
||||||
${{ inputs.Dockerfile }}
|
cat > /tmp/Dockerfile <<EOF
|
||||||
EOF
|
${{ inputs.Dockerfile }}
|
||||||
/kaniko/executor --dockerfile /tmp/Dockerfile --destination ${{ inputs.image }}
|
EOF
|
||||||
|
/kaniko/executor --dockerfile /tmp/Dockerfile --destination ${{ inputs.image }}
|
||||||
|
|
Loading…
Reference in a new issue