build: stage: build only: # - tags - gitlab-ci image: nixpkgs/nix before_script: - export NIX_PATH=nixpkgs=channel:nixos-unstable script: - nix-env -f shell.nix -i -A buildInputs - python ./nix/android-shell-shellHook.py ${ANDROID_HOME}/build-tools ${ANDROID_HOME}/platforms - make build artifacts: paths: - bazel-bin/app/java/dnsproxy.apk deploy: stage: deploy only: # - tags - gitlab-ci 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"'