Skip to content

Nightly

Nightly #1095

Workflow file for this run

name: Nightly
# on: push
on:
schedule:
# every night at midnight
- cron: '0 0 * * *'
workflow_dispatch:
jobs:
# uploading master and devel tarballs to web server, for use in subsequent tests
# the base tests that use these uploaded tarballs are the DIRAC "pilot wrapper" tests:
# https://github.com/DIRACGrid/DIRAC/actions?query=workflow%3A%22pilot+wrapper%22
# (triggered by https://github.com/DIRACGrid/DIRAC/blob/integration/.github/workflows/pilotWrapper.yml)
upload:
runs-on: ubuntu-latest
if: github.repository == 'DIRACGrid/Pilot'
strategy:
fail-fast: False
matrix:
branch:
- master
- devel
steps:
- uses: actions/checkout@v2
with:
ref: ${{ matrix.branch }}
- name: upload
run: |
echo ${{ secrets.GITHUB_TOKEN }} | docker login ghcr.io --username ${{ github.actor }} --password-stdin;
docker pull ghcr.io/diracgrid/management/dirac-distribution:latest
contID=$(docker run -dt ghcr.io/diracgrid/management/dirac-distribution:latest)
docker exec ${contID} mkdir Pilot
docker cp Pilot ${contID}:.
docker cp tests ${contID}:.
docker exec ${contID} bash -c \
"sed -i 's/uploaduser/${{ secrets.KRB_USERNAME }}/g' pilot_tarball_upload.sh && "\
"cat pilot_tarball_upload.sh && "\
"echo ${{ secrets.KRB_PASSWORD }} | kinit ${{ secrets.KRB_USERNAME }}@CERN.CH && "\
"echo readyToUpload && "\
"export USER=${{ secrets.KRB_USERNAME }} && "\
"echo reallyReadyToUpload && "\
"source pilot_tarball_upload.sh ${{ matrix.branch }}"