mirror of
https://github.com/Perlmint/glew-cmake.git
synced 2024-11-26 16:41:57 +00:00
Move to azure pipeline
This commit is contained in:
parent
ceb7145f3e
commit
20ea2d0d07
21
azure-pipelines.yml
Normal file
21
azure-pipelines.yml
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
schedules:
|
||||||
|
- cron: "0 0 * * *"
|
||||||
|
displayName: Daily midnight build
|
||||||
|
branches:
|
||||||
|
include:
|
||||||
|
- master
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
- job: NightlyUpdate
|
||||||
|
pool:
|
||||||
|
vmImage: 'ubuntu-16.04'
|
||||||
|
container: perlmint/glew-cmake:20190922
|
||||||
|
steps:
|
||||||
|
- checkout: self
|
||||||
|
persistCredentials: true
|
||||||
|
- bash: |
|
||||||
|
export TEST_MODE=false
|
||||||
|
git config --global user.email $GIT_USEREMAIL &&
|
||||||
|
git config --global user.name $GIT_USERNAME &&
|
||||||
|
unset SYSTEM # remove SYSTEM variable set by azure pipeline
|
||||||
|
./glew-cmake/maintain.sh
|
10
glew-cmake/Dockerfile
Normal file
10
glew-cmake/Dockerfile
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
# Azure pipeline require glibc based image
|
||||||
|
FROM debian:buster-slim
|
||||||
|
|
||||||
|
RUN apt update && \
|
||||||
|
apt install -y git make gcc python && \
|
||||||
|
apt clean && \
|
||||||
|
rm -rf /var/lib/apt/lists/*
|
||||||
|
|
||||||
|
RUN mkdir -p ~/.ssh && \
|
||||||
|
ssh-keyscan github.com >> ~/.ssh/known_hosts
|
@ -1,73 +0,0 @@
|
|||||||
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 coreutils python2
|
|
||||||
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: false
|
|
||||||
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: true
|
|
||||||
run:
|
|
||||||
path: /bin/sh
|
|
||||||
args:
|
|
||||||
- -c
|
|
||||||
- *run-script
|
|
||||||
|
|
@ -1 +0,0 @@
|
|||||||
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