Skip to content
Snippets Groups Projects
Verified Commit ed490da9 authored by Robotka István Adrián's avatar Robotka István Adrián
Browse files

hotfix ci image name of push

parent f23434ef
Branches
No related tags found
No related merge requests found
Pipeline #4182 failed
......@@ -6,7 +6,7 @@ stages:
- Docker build
variables:
CONTAINER_IMAGE: "registry.kszk.bme.hu/monitoring/pupak:$CI_COMMIT_REF_NAME"
CONTAINER_IMAGE: "hub.docker.com:robotka/pupak:$CI_COMMIT_REF_NAME"
pip:
stage: Get dependencies
......@@ -33,5 +33,3 @@ docker build:
script:
- echo "{\"auths\":{\"registry.kszk.bme.hu\":{\"username\":\"$CI_REG_USER\",\"password\":\"$CI_REG_PASS\"}}}" > /kaniko/.docker/services.json
- /kaniko/executor --context $CI_PROJECT_DIR --dockerfile $CI_PROJECT_DIR/Dockerfile --destination $CONTAINER_IMAGE
only:
- master
......@@ -43,12 +43,12 @@ class Generator:
stream = os.popen('git -C ' + str(self.data_folder.absolute()) + ' rev-parse HEAD')
git_hash = stream.read()
stream = os.popen('git -C ' + str(self.data_folder.absolute()) + ' log -1 --pretty=format:"%an"')
git_commiter = stream.read()
git_committer = stream.read()
output = "# This file is generated. Some meta:"
output += "\n# Time: " + datetime.now().isoformat()
output += "\n# Host: " + socket.gethostname()
output += "\n# Data dir commiter: " + git_commiter
output += "\n# Data dir commiter: " + git_committer
output += "\n# Data dir commit hash: " + git_hash.replace('\n', '')
return output
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment