diff options
author | Micah Anderson <micah@riseup.net> | 2017-05-04 19:49:01 -0400 |
---|---|---|
committer | Micah Anderson <micah@riseup.net> | 2017-05-04 20:13:01 -0400 |
commit | 0ab8bda086ec2953a644265a6a0d7af400b37a7d (patch) | |
tree | c32367d7c4e841b11c49873413325c12d253d395 /.gitlab-ci.yml | |
parent | 571cf88bf855dae527628f5b6379c7d1f3dcdba8 (diff) |
[feat] Create and publish docker image (see #8755).
When the tests/docker directory is changed, this CI job is triggered to
build the docker image and push it to the bitmask-dev container
registry.
This allows us to change the existing CI jobs to pull the image from our
registry, instead of from dockerhub.
Diffstat (limited to '.gitlab-ci.yml')
-rw-r--r-- | .gitlab-ci.yml | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 351c0ca0..2ac0985e 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -24,7 +24,7 @@ osx_test: - osx bitmask_latest_bundle: - image: leapcode/bitmask-dev:latest + image: 0xacab.org:4567/leap/bitmask-dev:latest stage: bundle script: pkg/build_bundle_with_venv.sh artifacts: @@ -36,7 +36,7 @@ bitmask_latest_bundle: - linux build_ui: - image: leapcode/bitmask-dev:latest + image: 0xacab.org:4567/leap/bitmask-dev:latest stage: build script: - cd ui && make dev-build @@ -44,7 +44,7 @@ build_ui: - linux e2e_tests: - image: leapcode/bitmask-dev:latest + image: 0xacab.org:4567/leap/bitmask-dev:latest stage: e2e allow_failure: true script: @@ -58,7 +58,7 @@ e2e_tests: - linux build_docker_image: - image: 0xacab.org:4567/micah/bitmask-dev:latest + image: 0xacab.org:4567/leap/bitmask-dev:latest stage: test services: - docker:dind @@ -66,7 +66,7 @@ build_docker_image: - docker-in-docker before_script: - > - export LAST_COMMIT=$(curl --header "PRIVATE-TOKEN: $CI_JOB_TOKEN" ${CI_PROJECT_URL}/pipelines | + export LAST_COMMIT=$(curl -s --header "PRIVATE-TOKEN: ${LEAP_CODE_O_MATIC_PRIVATE_TOKEN}" https://0xacab.org/api/v4/projects/574/pipelines | python -c "import sys, json; print json.load(sys.stdin)[1]['sha']") script: - > |