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: variables:
IMAGE_REPO: hamravesh/rawfile-csi IMAGE_REPO: hamravesh/rawfile-csi
script: script:
- export REGISTRY=docker.io
- mkdir -p ~/.docker/; echo $DOCKER_AUTH_CONFIG >~/.docker/config.json - mkdir -p ~/.docker/; echo $DOCKER_AUTH_CONFIG >~/.docker/config.json
- export IMAGE="$REGISTRY/$IMAGE_REPO" - export IMAGE="$REGISTRY/$IMAGE_REPO"
- docker build -t $IMAGE:$CI_COMMIT_SHORT_SHA -t $IMAGE:$CI_COMMIT_REF_SLUG . - docker build -t $IMAGE:$CI_COMMIT_SHORT_SHA -t $IMAGE:$CI_COMMIT_REF_SLUG .

View File

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

View File

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