summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Weipert <code@drogueronin.de>2023-05-29 09:19:51 +0200
committerDaniel Weipert <code@drogueronin.de>2023-05-29 09:19:51 +0200
commit6cd259b6589498f131ebfc316509936036e17adc (patch)
treee9448d7f23a57ceec2513dc71ed2e3cfd98d3d38
parent50fa761d6943e9cd0faef1ea6b801629af5ec889 (diff)
gitlab-ci
-rw-r--r--.gitlab-ci.yml28
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"'