Skip to content
Snippets Groups Projects
Verified Commit df8e7f7c authored by Torsten Grote's avatar Torsten Grote
Browse files

Move to Docker Hub registry

parent 017d66cd
No related branches found
No related tags found
No related merge requests found
Pipeline #
......@@ -9,11 +9,11 @@ stages:
- release
variables:
TEST_IMAGE: registry.gitlab.com/${CI_PROJECT_NAMESPACE}/${CI_PROJECT_NAME}:${CI_BUILD_REF_NAME}
RELEASE_IMAGE: registry.gitlab.com/${CI_PROJECT_NAMESPACE}/${CI_PROJECT_NAME}:latest
TEST_IMAGE: briar/reproducer:${CI_BUILD_REF_NAME}
RELEASE_IMAGE: briar/reproducer:latest
before_script:
- echo ${CI_BUILD_TOKEN} | docker login -u gitlab-ci-token --password-stdin registry.gitlab.com
- echo ${DOCKER_HUB_PASS} | docker login -u ${DOCKER_HUB_USER} --password-stdin
build:
stage: build
......
......@@ -58,14 +58,9 @@ you can use it for faster verification.
If not, you can skip to the next section to build the image yourself.
Then you are just trusting the official `debian:stable` which is out of our control.
To use our image without building it yourself,
you can just pull it from Gilab.com's docker registry:
To use our image without building it yourself, you can just pull it from Docker Hub:
docker pull registry.gitlab.com/grote/briar-reproducer:latest
Tag it with our canonical name:
docker tag registry.gitlab.com/grote/briar-reproducer:latest briar-reproducer:latest
docker pull briar/reproducer:latest
Now you can skip the next section and move to *Run the verification*.
......@@ -77,13 +72,13 @@ Check out the source repository:
Build our Docker image:
docker build -t briar-reproducer briar-reproducer
docker build -t briar/reproducer briar-reproducer
### Run the verification
To verify a specific version of Briar, run
docker run briar-reproducer:latest ./reproduce.py [tag]
docker run briar/reproducer:latest ./reproduce.py [tag]
Where `[tag]` is the git tag (source code snapshot) that identifies the version
you want to test, for example `release-1.0.1`.
......
......@@ -25,7 +25,7 @@ def main():
subprocess.check_call(['wget', '--no-verbose', url, '-O', reference_apk])
# build the app
repo_call(["./gradlew", GRADLE_TASK])
repo_call(["./gradlew", "--no-daemon", GRADLE_TASK])
# check if both APKs match
apk = os.path.join(REPO_DIR, APK_PATH)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment