Add CI pipeline data

This commit is contained in:
Gyusun Yeom 2019-06-29 18:51:17 +09:00
parent c52a9eb978
commit e3f3079a53
2 changed files with 74 additions and 0 deletions

73
glew-cmake/pipeline.yml Normal file
View File

@ -0,0 +1,73 @@
resources:
- name: glew-cmake-repo
type: git
source:
uri: git@github.com:Perlmint/glew-cmake.git
branch: master
private_key: ((private-repo-key))
- name: nightly
type: time
icon: clock-outline
source:
location: Asia/Seoul
start: 11:30 PM
stop: 11:59 PM
- name: build-image
type: docker-image
source:
repository: alpine
tag: edge
run-script: &run-script |
apk add --no-cache perl git openssh-client make bash
git config --global user.email "omniavinco@gmail.com"
git config --global user.name "Gyusun Yeom"
mkdir -p ~/.ssh
ssh-keyscan github.com >> ~/.ssh/known_hosts
echo | sed 's/^ \+//' > ~/.ssh/id_rsa <<- EOM
((private-repo-key))
EOM
chmod 600 ~/.ssh/id_rsa
cd ./glew-cmake-repo
git remote set-branches --add origin glew-cmake-release
git fetch
bash glew-cmake/maintain.sh
jobs:
- name: Nightly update
plan:
- get: nightly
trigger: true
- get: build-image
- get: glew-cmake-repo
- task: update
image: build-image
config:
platform: linux
inputs:
- name: glew-cmake-repo
params:
TEST_MODE: true
run:
path: /bin/sh
args:
- -c
- *run-script
- name: Manual test
plan:
- get: build-image
- get: glew-cmake-repo
- task: update
image: build-image
config:
platform: linux
inputs:
- name: glew-cmake-repo
params:
TEST_MODE: false
run:
path: /bin/sh
args:
- -c
- *run-script

1
glew-cmake/update-pipeline.sh Executable file
View File

@ -0,0 +1 @@
fly set-pipeline -c pipeline.yml -p glew-cmake -t perlmint_ci --var "private-repo-key=$(sudo cat $1)"