mirror of
https://github.com/Perlmint/glew-cmake.git
synced 2024-11-29 10:01:56 +00:00
Add CI pipeline data
This commit is contained in:
parent
c52a9eb978
commit
e3f3079a53
73
glew-cmake/pipeline.yml
Normal file
73
glew-cmake/pipeline.yml
Normal 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
1
glew-cmake/update-pipeline.sh
Executable file
@ -0,0 +1 @@
|
|||||||
|
fly set-pipeline -c pipeline.yml -p glew-cmake -t perlmint_ci --var "private-repo-key=$(sudo cat $1)"
|
Loading…
Reference in New Issue
Block a user