Remove docker image from release process

This commit is contained in:
s3lph 2021-09-28 01:01:00 +02:00
parent 195e5243a5
commit 2a78f44841
2 changed files with 18 additions and 16 deletions

View file

@ -30,20 +30,21 @@ codestyle:
build_docker: # currently not working for some reason
stage: build #build_docker:
script: # stage: build
- apt update && apt install --yes docker.io # script:
- docker build -t "registry.gitlab.com/s3lph/easywks:$CI_COMMIT_SHA" -f package/docker/Dockerfile . # - apt update && apt install --yes docker.io
- docker tag "registry.gitlab.com/s3lph/easywks:$CI_COMMIT_SHA" "registry.gitlab.com/s3lph/easywks:$CI_COMMIT_REF_NAME" # - docker build -t "registry.gitlab.com/s3lph/easywks:$CI_COMMIT_SHA" -f package/docker/Dockerfile .
- if [[ -n "$CI_COMMIT_TAG" ]]; then docker tag "registry.gitlab.com/s3lph/easywks:$CI_COMMIT_SHA" "registry.gitlab.com/s3lph/easywks:$CI_COMMIT_TAG"; fi # - docker tag "registry.gitlab.com/s3lph/easywks:$CI_COMMIT_SHA" "registry.gitlab.com/s3lph/easywks:$CI_COMMIT_REF_NAME"
- docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD registry.gitlab.com # - if [[ -n "$CI_COMMIT_TAG" ]]; then docker tag "registry.gitlab.com/s3lph/easywks:$CI_COMMIT_SHA" "registry.gitlab.com/s3lph/easywks:$CI_COMMIT_TAG"; fi
- docker push "registry.gitlab.com/s3lph/easywks:$CI_COMMIT_SHA" # - docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD registry.gitlab.com
- docker push "registry.gitlab.com/s3lph/easywks:$CI_COMMIT_REF_NAME" # - docker push "registry.gitlab.com/s3lph/easywks:$CI_COMMIT_SHA"
- if [[ -n "$CI_COMMIT_TAG" ]]; then docker push "registry.gitlab.com/s3lph/easywks:$CI_COMMIT_TAG"; fi # - docker push "registry.gitlab.com/s3lph/easywks:$CI_COMMIT_REF_NAME"
only: # - if [[ -n "$CI_COMMIT_TAG" ]]; then docker push "registry.gitlab.com/s3lph/easywks:$CI_COMMIT_TAG"; fi
- staging # only:
- tags # - staging
# - tags
build_wheel: build_wheel:
stage: build stage: build

View file

@ -122,8 +122,9 @@ def main():
### Download ### Download
- [Python Wheel]({wheel_url}) ([sha256]({wheel_sha_url})) - [Python Wheel]({wheel_url}) ([sha256]({wheel_sha_url}))
- [Debian Package]({debian_url}) ([sha256]({debian_sha_url})) - [Debian Package]({debian_url}) ([sha256]({debian_sha_url}))'''
- Docker image: registry.gitlab.com/{project_name}:{release_tag}''' # Docker currently not working
# - Docker image: registry.gitlab.com/{project_name}:{release_tag}
post_body: str = json.dumps({ post_body: str = json.dumps({
'tag_name': release_tag, 'tag_name': release_tag,