diff --git a/glew-cmake/pipeline.yml b/glew-cmake/pipeline.yml new file mode 100644 index 0000000..ec69b1b --- /dev/null +++ b/glew-cmake/pipeline.yml @@ -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 + diff --git a/glew-cmake/update-pipeline.sh b/glew-cmake/update-pipeline.sh new file mode 100755 index 0000000..464d156 --- /dev/null +++ b/glew-cmake/update-pipeline.sh @@ -0,0 +1 @@ +fly set-pipeline -c pipeline.yml -p glew-cmake -t perlmint_ci --var "private-repo-key=$(sudo cat $1)"