Commit 8c676f28 authored by Torsten Grote's avatar Torsten Grote

publish build artifacts

parent 9da4de68
Pipeline #3827 failed with stages
in 11 minutes and 28 seconds
......@@ -13,6 +13,7 @@ variables:
TEST_IMAGE: briar/reproducer:${CI_BUILD_REF_NAME}
RELEASE_IMAGE: briar/reproducer:latest
TAG_IMAGE: briar/reproducer:${RELEASE_TAG}
APK_PATH: /opt/briar-reproducer/briar-build/briar-android/build/outputs/apk/official/release/briar-android-official-release-unsigned.apk
before_script:
- echo ${DOCKER_HUB_PASS} | docker login -u ${DOCKER_HUB_USER} --password-stdin
......@@ -31,6 +32,11 @@ test_success:
# Consider adding the cap and the device directly to the CI config
# https://docs.gitlab.com/runner/configuration/advanced-configuration.html#the-runners-docker-section
- docker run --cap-add SYS_ADMIN --device /dev/fuse ${TEST_IMAGE} ./reproduce.py AndroidX
artifacts:
paths:
- ${APK_PATH}
expire_in: 1 week
when: on_failure
except:
- triggers
......@@ -47,6 +53,11 @@ release:
- docker pull $TEST_IMAGE
- docker tag $TEST_IMAGE $RELEASE_IMAGE
- docker push $RELEASE_IMAGE
artifacts:
paths:
- ${APK_PATH}
expire_in: 1 week
when: on_failure
only:
- master
- tags
......@@ -59,5 +70,10 @@ check:
- docker run --cap-add SYS_ADMIN --device /dev/fuse ${RELEASE_IMAGE} ./reproduce.py ${RELEASE_TAG}
- docker tag ${RELEASE_IMAGE} ${TAG_IMAGE}
- docker push ${TAG_IMAGE}
artifacts:
paths:
- ${APK_PATH}
expire_in: 1 week
when: on_failure
only:
- triggers
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