diff options
Diffstat (limited to '.gitlab-ci.yml')
-rw-r--r-- | .gitlab-ci.yml | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000..7253540 --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,28 @@ +build: + stage: build + only: + - tags + + image: nixpkgs/nix + + script: + - nix-shell + - make build + + artifact: + paths: + - bazel-bin/app/java/dnsproxy.apk + +release: + stage: release + only: + - tags + + needs: + - job: build + artifacts: true + + image: curlimages/curl:latest + + script: + - 'curl --header "JOB-TOKEN: $CI_JOB_TOKEN" --upload-file bazel-bin/app/java/dnsproxy.apk "${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/packages/generic/apk/${CI_COMMIT_TAG}/dnsproxy.apk"' |