forked from gridcf/gct
-
Notifications
You must be signed in to change notification settings - Fork 0
43 lines (38 loc) · 1.25 KB
/
build-test-deploy.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
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
name: Build/Test/Deploy
on:
push:
pull_request:
# tags:
# - v[0-9]+.[0-9]+.[0-9]+
# - v[0-9]+.[0-9]+.[0-9]+.[0-9]+
jobs:
run-scripts:
runs-on: ubuntu-latest
strategy:
matrix:
image: ['centos:centos7']
components: ['udt,myproxy,ssh', 'gram5']
steps:
- uses: actions/checkout@v2
- name: build/test on ${{ matrix.image }} with ${{ matrix.components }}
env:
IMAGE: ${{ matrix.image }}
TASK: tests
COMPONENTS: ${{ matrix.components }}
run: travis-ci/setup_tasks.sh
- name: build source tarballs and srpms
env:
IMAGE: centos:centos7
TASK: srpms
run: travis-ci/setup_tasks.sh
# SSH key recipe from https://www.webfactory.de/blog/use-ssh-key-for-private-repositories-in-github-actions
- name: Establish ssh
if: contains(github.ref , 'refs/tags/')
env:
SSH_AUTH_SOCK: /tmp/ssh_agent.sock
run: |
mkdir -p ~/.ssh
ssh-keyscan github.com >> ~/.ssh/known_hosts
ssh-agent -a "$SSH_AUTH_SOCK" > /dev/null
ssh-add - <<< "${{ secrets.ID_GCTUPLOADER }}"
travis-ci/upload_source_tarballs.sh ${{ github.repository_owner }}