From 6cd259b6589498f131ebfc316509936036e17adc Mon Sep 17 00:00:00 2001 From: Daniel Weipert Date: Mon, 29 May 2023 09:19:51 +0200 Subject: gitlab-ci --- .gitlab-ci.yml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 .gitlab-ci.yml (limited to '.gitlab-ci.yml') 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"' -- cgit v1.2.3