Skip to content

chore: a new compile GH workflow to be run on PR and commit to main #2

chore: a new compile GH workflow to be run on PR and commit to main

chore: a new compile GH workflow to be run on PR and commit to main #2

Workflow file for this run

name: Publish Helm chart
on:
push:
branches:
- main
- "hotfix-[0-9]+.[0-9]+**"
pull_request:
types:
- opened
- synchronize
- reopened
jobs:
cleanup-previous-runs:
name: Cleanup previous runs
runs-on: ubuntu-latest
if: github.event.action != 'closed'
steps:
- uses: rokroskar/[email protected]
env:
GITHUB_TOKEN: "${{ secrets.RENKUBOT_GITHUB_TOKEN }}"
compile-compactor:
name: Compile Compactor tool
runs-on: ubuntu-latest
needs: [ cleanup-previous-runs ]
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: coursier/[email protected]
- uses: VirtusLab/[email protected]
with:
jvm: temurin:21
- run: scala-cli compile compactor/src/* compactor/Compactor.scala; echo 'Compactor compiled'
publish:
name: Try building images
runs-on: ubuntu-latest
needs: [ compile-compactor ]
env:
GIT_USER: Renku Bot
GIT_EMAIL: [email protected]
GITHUB_TOKEN: ${{ secrets.RENKUBOT_GITHUB_TOKEN }}
CHART_TAG: ${{ github.ref_name }}
steps:
- uses: actions/checkout@v3
- name: Lint chart
uses: WyriHaximus/github-action-helm3@v2
with:
exec: helm lint ./renku-jena/
- name: Set up QEMU
uses: docker/setup-qemu-action@v1
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
- name: Install python
uses: actions/setup-python@v4
with:
python-version: '3.9'
- name: Install dependencies
run: |
python -m pip install chartpress
- name: Try building chart and images
run: |
chartpress --image-prefix renku/ --builder docker-buildx --platform linux/amd64 --platform linux/arm64