Commit de98bf24 authored by Jens Langhammer's avatar Jens Langhammer

ci: push image to stable and version number, add gitlab-ci to bumpversion

parent 844ac4b4
Pipeline #3227 passed with stages
in 5 minutes and 1 second
......@@ -11,3 +11,5 @@ tag_name = debian/{new_version}
[bumpversion:file:pyazo/__init__.py]
[bumpversion:file:Dockerfile]
[bumpversion:file:.gitlab-ci.yml]
......@@ -40,11 +40,7 @@ package-docker:
- echo "{\"auths\":{\"https://index.docker.io/v1/\":{\"username\":\"$DOCKER_USERNAME\",\"password\":\"$DOCKER_PASSWORD\"}}}" > /kaniko/.docker/config.json
script:
- /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,"^.*=",,)
- /kaniko/executor --context $CI_PROJECT_DIR --dockerfile $CI_PROJECT_DIR/Dockerfile --destination beryjuorg/pyazo:1.8.8
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