Choria Nightly #599
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: Choria Nightly | |
on: | |
workflow_dispatch: {} | |
schedule: | |
- cron: "40 4 * * *" | |
env: | |
build_version: nightly | |
jobs: | |
el8_64: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Build | |
uses: choria-io/actions/packager@main | |
with: | |
build_package: el8_64 | |
packager_tag: el8-go1.22 | |
version: ${{ env.build_version }} | |
el9_64: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Build | |
uses: choria-io/actions/packager@main | |
with: | |
build_package: el9_64 | |
packager_tag: el9-go1.22 | |
version: ${{ env.build_version }} | |
docker: | |
needs: | |
- upload | |
runs-on: ubuntu-latest | |
steps: | |
- name: Build and Publish Docker Container | |
uses: choria-io/actions/nightly@main | |
with: | |
package: choria-provisioner | |
repo: provisioner | |
dockerfile: Dockerfile-nightly | |
registry_username: "${{ secrets.REGISTRY_USERNAME }}" | |
registry_password: "${{ secrets.REGISTRY_PASSWORD }}" | |
upload: | |
needs: | |
- el8_64 | |
- el9_64 | |
runs-on: ubuntu-latest | |
steps: | |
- name: Download all artifacts | |
uses: actions/download-artifact@v4 | |
with: | |
path: artifacts | |
- name: Artifacts normalization | |
shell: bash | |
run: | | |
cd artifacts | |
for i in foss* | |
do | |
mv -v $i $(echo $i|cut -d_ -f2-) | |
done | |
- name: Upload artifacts to Spaces | |
uses: jakejarvis/s3-sync-action@master | |
with: | |
args: --endpoint=https://ams3.digitaloceanspaces.com --acl authenticated-read | |
env: | |
AWS_S3_BUCKET: choria-packages-ams | |
AWS_ACCESS_KEY_ID: ${{ secrets.SPACES_ACCESS_KEY_ID }} | |
AWS_SECRET_ACCESS_KEY: ${{ secrets.SPACES_SECRET_ACCESS_KEY }} | |
SOURCE_DIR: artifacts | |
DEST_DIR: ${{ env.build_version }} |