Nightlies #193
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This workflow runs every 24 hours for the following purpose: | |
# | |
# - Create + upload *integration* + *master* tarball | |
# | |
# All created images are then uploaded to GitHub packages | |
name: Nightlies | |
# on: push | |
on: | |
schedule: | |
# every day at 6 am (so that the master of DIRACOS is already created) | |
- cron: '0 6 * * *' | |
jobs: | |
# running dirac-distribution in the proper image | |
dirac-distribute: | |
runs-on: ubuntu-latest | |
if: github.repository == 'DIRACGrid/DIRAC' | |
strategy: | |
fail-fast: False | |
matrix: | |
branch: | |
- master | |
- integration | |
steps: | |
- uses: actions/checkout@v1 | |
- name: create | |
run: | | |
docker pull ghcr.io/diracgrid/management/dirac-distribution:latest | |
docker run ghcr.io/diracgrid/management/dirac-distribution:latest bash -c \ | |
"python3 dirac-distribution.py -r ${{ matrix.branch }} | tail -n 1 > /tmp/deploy.sh && "\ | |
"sed -i 's/lhcbprod/${{ secrets.KRB_USERNAME }}/g' /tmp/deploy.sh && "\ | |
"cat /tmp/deploy.sh && "\ | |
"echo ${{ secrets.KRB_PASSWORD }} | kinit ${{ secrets.KRB_USERNAME }}@CERN.CH && "\ | |
"echo readyToUpload && "\ | |
"export USER=${{ secrets.KRB_USERNAME }} && "\ | |
"echo reallyReadyToUpload && "\ | |
"source /tmp/deploy.sh" |