-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitlab-ci.yml
46 lines (39 loc) · 999 Bytes
/
.gitlab-ci.yml
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
36
37
38
39
40
41
42
43
44
stages:
# - mirror
- build
- deploy
variables:
RUST_VERSION: stable
# mirror:
# stage: mirror
# script:
# - git clone --mirror https://gitlab.com/saliaku/pooi-kailas.git mirror_repo
# - cd mirror_repo
# - git remote set-url --push origin git@github.com:saliaku/pooi-kailas.git
# - git fetch -p origin
# - git push --mirror origin
# only:
# - main # or specific branches you want to mirror
build:
stage: build
image: "rust:latest"
before_script:
- apt-get update && apt-get install -y cmake # For Debian/Ubuntu based images
# Uncomment the following line for CentOS/RHEL based images
#- yum install -y cmake
script:
- cargo install cargo-deb
- cargo build --release
- cargo-deb
artifacts:
paths:
- target/debian/*.deb
deploy:
stage: deploy
script:
- git archive --format=tar.gz -o pooi-$CI_COMMIT_REF_NAME.tar.gz HEAD
artifacts:
paths:
- pooi-$CI_COMMIT_REF_NAME.tar.gz
only:
- tags