Push official images to dockerhub

This commit is contained in:
Mehran Kholdi 2020-05-29 18:37:55 +04:30
parent b49f8304f5
commit a51305e878
3 changed files with 3 additions and 2 deletions

View File

@ -4,6 +4,7 @@ build:
variables:
IMAGE_REPO: hamravesh/rawfile-csi
script:
- export REGISTRY=docker.io
- mkdir -p ~/.docker/; echo $DOCKER_AUTH_CONFIG >~/.docker/config.json
- export IMAGE="$REGISTRY/$IMAGE_REPO"
- docker build -t $IMAGE:$CI_COMMIT_SHORT_SHA -t $IMAGE:$CI_COMMIT_REF_SLUG .

View File

@ -1,6 +1,6 @@
defaults: &defaults
image:
repository: registry.hamdocker.ir/hamravesh/rawfile-csi
repository: docker.io/hamravesh/rawfile-csi
tag: master
pullPolicy: Always
resources:

View File

@ -17,7 +17,7 @@ spec:
containers:
- name: task
# FIXME: use immutable tag
image: registry.hamdocker.ir/hamravesh/rawfile-csi:master
image: docker.io/hamravesh/rawfile-csi:master
# FIXME: change to IfNotPresent
imagePullPolicy: Always
volumeMounts: