blob: 5493ce13aaf94af0af73ad17a3ad26f9085d92b3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
build:
stage: build
only:
# - tags
- gitlab-ci
image: nixpkgs/nix
before_script:
- export NIX_PATH=nixpkgs=channel:nixos-unstable
script:
- nix-shell --command "make build"
- "echo $(pwd) $(ls)"
- "echo $(ls bazel-bin/) $(ls bazel-bin/app/java/)"
- echo ${CI_PROJECT_DIR}
artifacts:
paths:
- ${CI_PROJECT_DIR}/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"'
|