Commit 11b72d9c authored by J. Fernando Sánchez's avatar J. Fernando Sánchez
Browse files

fix CI

parent 79e94aac
......@@ -12,16 +12,16 @@ build:
- docker
script:
- echo "{\"auths\":{\"$CI_REGISTRY\":{\"username\":\"$CI_REGISTRY_USER\",\"password\":\"$CI_REGISTRY_PASSWORD\"},\"https://index.docker.io/v1/\":{ \"auth\":\"$HUB_AUTH\"}}}" > /kaniko/.docker/config.json
- echo /kaniko/.docker/config.json
- /kaniko/executor --context $CI_PROJECT_DIR --cache=true --dockerfile $CI_PROJECT_DIR/Dockerfile --cache-repo $CI_REGISTRY_IMAGE/cache --destination gsiupm/gsicrawler:$CI_COMMIT_SHA --destination gsiupm/gsicrawler:$CI_COMMIT_REF_SLUG
- /kaniko/executor --context $CI_PROJECT_DIR --cache=true --dockerfile $CI_PROJECT_DIR/Dockerfile --cache-repo $CI_REGISTRY_IMAGE/cache --destination $CI_REGISTRY_IMAGE:$CI_COMMIT_SHA --destination $CI_REGISTRY_IMAGE:$CI_COMMIT_REF_SLUG
only:
- master
- tags
deploy:
only:
- master
- tags
except:
- branches
tags:
- docker
image: alpine:3.7
......
......@@ -10,6 +10,7 @@ spec:
labels:
role: gsicrawler-web
app: gsicrawler
git_tag: "${CI_COMMIT_TAG}"
spec:
imagePullSecrets:
- name: registry.cluster.gsi.dit.upm.es
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment