summary refs log blame commit diff stats
path: root/build/ci/gitlab-ci.yml
blob: 967029c6431ea85bea1aa91c50c622b508d1bbaa (plain) (tree)
1
2
3
4
5
6
7
8






                                       
                                                    







                             






                          
           



                                                                                 
            

                             
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
      - GOOS=openbsd GOARCH=amd64 go build -o $CI_PROJECT_DIR/cetus-openbsd-amd64
      - GOOS=linux GOARCH=amd64 go build -o $CI_PROJECT_DIR/cetus-linux-amd64
      artifacts:
      paths:
        - cetus-openbsd-amd64
        - cetus-linux-amd64