Publish RHEL7 compatible nightly release #34
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
name: Publish RHEL7 compatible nightly release | |
on: | |
schedule: | |
- cron: '0 1 * * *' | |
workflow_dispatch: | |
jobs: | |
build: | |
env: | |
ENVIRONMENT_NAME: rhel7_devel | |
ENVIRONMENT_FILE_PATH: rhel7_devel.yml | |
TEST_FILE: test.sh | |
runs-on: ubuntu-latest | |
name: Build environment | |
steps: | |
- name: Free disk space | |
run: | | |
sudo swapoff -a | |
sudo rm -f /swapfile | |
sudo apt clean | |
docker rmi $(docker image ls -aq) | |
df -h | |
- name: Configure Git for shallow clone | |
run: | | |
git config --global core.shallowClone true | |
- name: Build environment | |
uses: slaclab/[email protected] | |
- name: Upload artifact to release | |
uses: svenstaro/upload-release-action@v2 | |
with: | |
repo_token: ${{ secrets.GITHUB_TOKEN }} | |
file: ${{ env.ENVIRONMENT_NAME }}.tar.gz | |
tag: rhel7-nightly | |
overwrite: true | |
file_glob: true |