-
Notifications
You must be signed in to change notification settings - Fork 0
60 lines (60 loc) · 1.99 KB
/
publish.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
name: Publish Helm chart
on:
push:
tags:
- '*.*.*'
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
publish:
name: Publish
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: Build and push chart and images
run: |
git config --global user.email "$GIT_EMAIL"
git config --global user.name "$GIT_USER"
git config --global --add safe.directory /github/workspace
echo ${{ secrets.RENKU_DOCKER_PASSWORD }} | docker login -u ${{ secrets.RENKU_DOCKER_USERNAME }} --password-stdin
chartpress --push --publish-chart --tag "$CHART_TAG" --image-prefix renku/ --builder docker-buildx --platform linux/amd64 --platform linux/arm64