| 1 |
name: CIT Crossdock |
| 2 |
|
| 3 |
on: |
| 4 |
push: |
| 5 |
branches: [ master ] |
| 6 |
pull_request: |
| 7 |
branches: [ master ] |
| 8 |
|
| 9 |
jobs: |
| 10 |
crossdock: |
| 11 |
runs-on: ubuntu-latest |
| 12 |
env: |
| 13 |
TORNADO: ">=4,<5" |
| 14 |
VIRTUAL_ENV: "github" |
| 15 |
steps: |
| 16 |
- uses: actions/checkout@v2 |
| 17 |
with: |
| 18 |
submodules: true |
| 19 |
|
| 20 |
- uses: actions/setup-python@v2 |
| 21 |
with: |
| 22 |
python-version: 3.9 |
| 23 |
|
| 24 |
- uses: docker/login-action@v1 |
| 25 |
id: dockerhub-login |
| 26 |
with: |
| 27 |
username: jaegertracingbot |
| 28 |
password: ${{ secrets.DOCKERHUB_TOKEN }} |
| 29 |
env: |
| 30 |
DOCKERHUB_TOKEN: ${{ secrets.DOCKERHUB_TOKEN }} |
| 31 |
if: env.DOCKERHUB_TOKEN != null |
| 32 |
|
| 33 |
- name: Export DOCKERHUB_LOGIN variable |
| 34 |
run: | |
| 35 |
echo "DOCKERHUB_LOGIN=true" >> $GITHUB_ENV |
| 36 |
if: steps.dockerhub-login.outcome == 'success' |
| 37 |
|
| 38 |
- name: Export BRANCH variable for pull_request event |
| 39 |
run: | |
| 40 |
export BRANCH=${GITHUB_HEAD_REF} |
| 41 |
echo "we are on branch=$BRANCH" |
| 42 |
echo "BRANCH=${BRANCH}" >> $GITHUB_ENV |
| 43 |
if: github.event_name == 'pull_request' |
| 44 |
|
| 45 |
- name: Export BRANCH variable for push event |
| 46 |
run: | |
| 47 |
echo "BRANCH=${GITHUB_REF##*/}" >> $GITHUB_ENV |
| 48 |
if: github.event_name == 'push' |
| 49 |
|
| 50 |
- name: Install pycurl dependencies |
| 51 |
run: sudo apt-get install libgnutls28-dev libcurl4-openssl-dev libssl-dev |
| 52 |
|
| 53 |
- name: Install dependencies |
| 54 |
run: make bootstrap |
| 55 |
|
| 56 |
- name: Build crossdock |
| 57 |
run: bash scripts/build-crossdock.sh |
| 58 |
|
| 59 |
- name: Output crossdock logs |
| 60 |
run: make crossdock-logs |
| 61 |
if: ${{ failure() }} |