Project:Infrastructure/packages.gentoo.org
From Gentoo Wiki
Jump to:navigation
Jump to:search
Manually upload a new container image version
In case you need to manually upload a new container image version (e.g. because the CI is not working correctly, or because a hot-fix is needed) you can run the following commands locally in the folder containing the soko source code. Use your gitlab.com credentials when running docker loginː
Update the web image
user $
BRANCH=$(git branch --show-current)
user $
COMMIT_SHA=$(git rev-parse HEAD)
user $
docker login registry.gitlab.com
user $
IMAGE_TAG="registry.gitlab.com/gentoo/soko/${BRANCH}:${COMMIT_SHA}"
user $
LATEST_IMAGE_TAG="registry.gitlab.com/gentoo/soko/${BRANCH}:latest"
user $
docker build --no-cache -t $IMAGE_TAG -t $LATEST_IMAGE_TAG .
user $
docker push $LATEST_IMAGE_TAG
user $
docker push $IMAGE_TAG
Update the updater image
user $
BRANCH=$(git branch --show-current)
user $
COMMIT_SHA=$(git rev-parse HEAD)
user $
docker login registry.gitlab.com
user $
UPDATER_IMAGE_TAG="registry.gitlab.com/gentoo/soko/updater-${BRANCH}:${COMMIT_SHA}"
user $
LATEST_UPDATER_IMAGE_TAG="registry.gitlab.com/gentoo/soko/updater-${BRANCH}:latest"
user $
docker build --no-cache -t $UPDATER_IMAGE_TAG -t $LATEST_UPDATER_IMAGE_TAG -f Dockerfile.updater .
user $
docker push $LATEST_UPDATER_IMAGE_TAG
user $
docker push $UPDATER_IMAGE_TAG