Publish RHEL7 compatible nightly release #50
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: Build environment | |
uses: slaclab/[email protected] | |
- name: Split artifact into smaller chunks | |
run: | | |
# Split the tar.gz file into chunks of 1GB each | |
split -b 1G -d --additional-suffix=.part ${{ env.ENVIRONMENT_NAME }}.tar.gz ${{ env.ENVIRONMENT_NAME }}.tar.gz. | |
- name: Upload artifact to release | |
uses: svenstaro/upload-release-action@v2 | |
with: | |
repo_token: ${{ secrets.GITHUB_TOKEN }} | |
file: ${{ env.ENVIRONMENT_NAME }}.tar.gz.*.part | |
tag: rhel7-nightly | |
overwrite: true | |
file_glob: true |