Commit 926b09ad authored by Joseph Weston's avatar Joseph Weston

build research docker locally, rather than pushing to Github

The only reason we pushed in the first place was to get Dockerhub
to autobuild from the Github repo.
parent 284d6f3f
Pipeline #12637 failed with stage
in 32 minutes and 42 seconds
stages:
- mirror
image:
name: gcr.io/kaniko-project/executor:debug
entrypoint: [""]
before_script:
- mkdir -p /root/.docker
- echo "{\"auths\":{\"$CI_REGISTRY\":{\"username\":\"$CI_REGISTRY_USER\",\"password\":\"$CI_REGISTRY_PASSWORD\"}}}" > /root/.docker/config.json
- cat /root/.docker/config.json
- export CI_REF=${CI_COMMIT_TAG:-latest}
mirror repository:
stage: mirror
allow_failure: true
variables:
REPO: "git@github.com:quantum-tinkerer/research-docker.git"
before_script:
- mkdir ~/.ssh && chmod 700 ~/.ssh
- ssh-keyscan -t rsa github.com >> ~/.ssh/known_hosts
- echo "$DEPLOY_KEY" > ~/.ssh/id_rsa && chmod 600 ~/.ssh/id_rsa
after_script:
- rm -rf ~/.ssh
build research env:
stage: build
script:
- ORIGIN_URL=$(git config --get remote.origin.url)
- cd $(mktemp -d); git clone --bare $ORIGIN_URL .
- git push --mirror $REPO
- /kaniko/executor
--context $CI_PROJECT_DIR
--dockerfile $CI_PROJECT_DIR/Dockerfile
--destination $CI_REGISTRY_IMAGE:$CI_REF
Markdown is supported
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