-
Notifications
You must be signed in to change notification settings - Fork 0
62 lines (62 loc) · 1.81 KB
/
compile.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
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