Push official images to dockerhub
This commit is contained in:
parent
b49f8304f5
commit
a51305e878
@ -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 .
|
||||||
|
@ -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:
|
||||||
|
@ -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:
|
||||||
|
Loading…
Reference in New Issue
Block a user