Commit a8343522 authored by Jens Langhammer's avatar Jens Langhammer

ci: switch to kaniko, build docker image in k8s

parent e764298e
Pipeline #3224 failed with stages
in 3 minutes and 4 seconds
......@@ -33,15 +33,18 @@ coverage:
stage: test
package-docker:
image: docker:dind
image:
name: gcr.io/kaniko-project/executor:debug
entrypoint: [""]
before_script:
- echo "$DOCKER_PASSWORD" | docker login --username "$DOCKER_USERNAME" --password-stdin
- echo "{\"auths\":{\"https://index.docker.io/v1/\":{\"username\":\"$DOCKER_PASSWORD\",\"password\":\"$DOCKER_USERNAME\"}}}" > /kaniko/.docker/config.json
script:
- docker build -t pyazo_temp .
- docker tag pyazo_temp beryjuorg/pyazo:stable
- docker tag pyazo_temp beryjuorg/pyazo:$(bumpversion --allow-dirty --dry-run --list minor | grep current_version | sed s,"^.*=",,)
- docker push beryjuorg/pyazo:stable
- docker push beryjuorg/pyazo:$(bumpversion --allow-dirty --dry-run --list minor | grep current_version | sed s,"^.*=",,)
- /kaniko/executor --context $CI_PROJECT_DIR --dockerfile $CI_PROJECT_DIR/Dockerfile --destination beryjuorg/pyazo:stable
# - docker build -t pyazo_temp .
# - docker tag pyazo_temp beryjuorg/pyazo:stable
# - docker tag pyazo_temp beryjuorg/pyazo:$(bumpversion --allow-dirty --dry-run --list minor | grep current_version | sed s,"^.*=",,)
# - docker push beryjuorg/pyazo:stable
# - docker push beryjuorg/pyazo:$(bumpversion --allow-dirty --dry-run --list minor | grep current_version | sed s,"^.*=",,)
stage: build
only:
- tags
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment