forked from citizenfx/fivem
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
24 lines (20 loc) · 2.74 KB
/
.travis.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
sudo: required
services:
- docker
language: bash
env:
global:
# DOCKER_EMAIL
- secure: "aD4eQSYRLrKrrFVV88ksjC1kJPZ+jqu8pZPgh8OC3WQrZmPMVEvBJ4ojw1Ns/Mj3ssDpJ7xlxuCm1pCoXK77dJylDn2kVTuOdkRci9QUt3ZV/lLOOYFnGVh+GSLyqNxURViDOeFzFk5m/IkHoeGjNx1XiLup/LLs+lj99fGfq7SNH98z6c78AGIEbmSJ2T/hg8lJJ1jw52L3Dz3cRcAO6Gyy9t/+MmhEGVRrkFtRzYFjaHqSWpDXmdQf13Pf59zNgyyQFNxMVBmVFmof9fg20lWYbLY+bqltxcBqmKqEb1YxnOQ0OmWgFzp1BR5Fq/33BdpSbF36j9f3Gx9ECZSei6no71xWfvsFNjj0NXBsRu1un7cEvJkqEHsfRR86aK+gtWEJg+bWrkZTUl4BvM0Gv7hfldJSLeFYeWNDrVvvHmR733sBvsCU5WSNUXgvMk5v9iJkSgAmL6HRo5r/N/2YUZ/QcudOnff1ApAE6yLRzhkM7MDnO9wvbNBKJus7izw+ke8Wktg2i9Gk9f0p4j+rm1O7McsKTIJ6kJSU5MxFJokljWjlegDSX7ad9w5tUb10QYM0dZ1ZHeVg7y0hImh0P/ldebzk8etGztF077H0/roDBsqP6WeoSk+XOr4UPutSVEiTuZRBFTa5KNfeG3178gd/OoT+AwMA0+IwDpny2ls="
# DOCKER_USER
- secure: "EcQUC0ttoRmJHZC6fpH5NqfTne/ZusCQi8JZNfAdXPTNF3ftxz0DPqVkmm9CMltYIOedM+xFwr9anFZB/zLGx21qxQuRHaHPMWq5/sd2QI8DnYgN+HpUYpCVBsGBLjO6TgIFq+y70Anvfs5Zn8D/1BZJ8whuQwWNKhPg+zHSDjQ/vkKLlcAtseSjvvX9f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662Qy6/AdpGzxHUBxwHoHAP+P0Qa7u6JhErsqt5DIdzAezqKQrDS/fi4TPcYCYusGeaVjMlVuzZycwO8EOvrV2WNKlPRNc8MMyvj7g7KVibEKer8bwk="
- GIT_BRANCH=$(git ls-remote origin | sed -n "\|$TRAVIS_COMMIT\s\+refs/heads/|{s///p}")
script:
- git submodule update --init
- curl -O -L https://github.com/Hellslicer/rocker/releases/download/1.3.4/rocker_linux_amd64.tar.gz
- tar xvf rocker_linux_amd64.tar.gz
- cd code/
- 'if [ -z "$TRAVIS_TAG" ]; then ../rocker build --build-arg JOB_SLOTS=$(nproc); fi'
- 'if [ ! -z "$TRAVIS_TAG" ]; then ../rocker build --build-arg JOB_SLOTS=$(nproc) --build-arg CI_BRANCH=${GIT_BRANCH} --build-arg CI_BUILD_NUMBER=${TRAVIS_TAG} --auth $DOCKER_USER:$DOCKER_PASS --push; fi'