This commit is contained in:
@@ -12,13 +12,18 @@ steps:
|
||||
from_secret: docker_password
|
||||
entrypoint: ["/busybox/sh", "-c"]
|
||||
commands:
|
||||
- TAG=${CI_COMMIT_SHA:0:8}
|
||||
- set -e
|
||||
- echo "CI_WORKSPACE=$CI_WORKSPACE"
|
||||
- echo "PWD=$(pwd)"
|
||||
- ls -la
|
||||
- TAG=$(echo $CI_COMMIT_SHA | cut -c1-8)
|
||||
- REGISTRY=git.mikhailkilin.ru
|
||||
- REPO=killingdruid/bcard
|
||||
- echo "Building $REGISTRY/$REPO:$TAG"
|
||||
- AUTH=$(echo -n "$DOCKER_USERNAME:$DOCKER_PASSWORD" | base64)
|
||||
- AUTH=$(echo -n "$DOCKER_USERNAME:$DOCKER_PASSWORD" | /busybox/base64)
|
||||
- mkdir -p /kaniko/.docker
|
||||
- 'printf "{\"auths\":{\"%s\":{\"auth\":\"%s\"}}}" "$REGISTRY" "$AUTH" > /kaniko/.docker/config.json'
|
||||
- echo "{\"auths\":{\"git.mikhailkilin.ru\":{\"auth\":\"$AUTH\"}}}" > /kaniko/.docker/config.json
|
||||
- cat /kaniko/.docker/config.json
|
||||
- /kaniko/executor --context=$CI_WORKSPACE --dockerfile=$CI_WORKSPACE/Dockerfile --destination=$REGISTRY/$REPO:$TAG --destination=$REGISTRY/$REPO:latest --insecure --skip-tls-verify --verbosity=info
|
||||
|
||||
- name: update-manifests
|
||||
|
||||
Reference in New Issue
Block a user