blob: 93a83272b91f049f1d16a09d1dce401647f66bd0 (
plain) (
blame)
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
|
image: golang:1.13
variables:
REPO_NAME: framagit.org/andinus/cetus
before_script:
- mkdir -p $GOPATH/src/$REPO_NAME
- cp -fr $CI_PROJECT_DIR/* $GOPATH/src/$REPO_NAME/
- cd $GOPATH/src/$REPO_NAME
stages:
- build
- deploy
compile:
stage: build
only:
refs:
- web
- tags
- master
- schedules
- merge_requests
script:
- cd $GOPATH/src/$REPO_NAME/cmd/cetus-nasa
- GOOS=openbsd GOARCH=amd64 go build -o $CI_PROJECT_DIR/cetus-nasa-openbsd-amd64
- GOOS=linux GOARCH=amd64 go build -o $CI_PROJECT_DIR/cetus-nasa-linux-amd64
- cd $GOPATH/src/$REPO_NAME/cmd/cetus-bing
- GOOS=openbsd GOARCH=amd64 go build -o $CI_PROJECT_DIR/cetus-bing-openbsd-amd64
- GOOS=linux GOARCH=amd64 go build -o $CI_PROJECT_DIR/cetus-bing-linux-amd64
- cd $GOPATH/src/$REPO_NAME/cmd/cetus-wallhaven
- GOOS=openbsd GOARCH=amd64 go build -o $CI_PROJECT_DIR/cetus-wallhaven-openbsd-amd64
- GOOS=linux GOARCH=amd64 go build -o $CI_PROJECT_DIR/cetus-wallhaven-linux-amd64
artifacts:
paths:
- cetus-nasa-openbsd-amd64
- cetus-nasa-linux-amd64
- cetus-bing-openbsd-amd64
- cetus-bing-linux-amd64
- cetus-wallhaven-openbsd-amd64
- cetus-wallhaven-linux-amd64
|