-
Notifications
You must be signed in to change notification settings - Fork 19
52 lines (39 loc) · 1.1 KB
/
on_push_to_main.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
on:
push:
branches:
- main
env:
FS_IMAGE: ghcr.io/${{ github.repository }}
jobs:
release-docker:
runs-on: ubuntu-22.04
permissions:
contents: read
packages: write
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0 # necessary for 'git describe' to work
- run: echo "GIT_TAG=$(git describe --tags)" >> $GITHUB_ENV
- uses: ./.github/actions/build-image
with:
push: 'true'
image_tag: ${{ env.GIT_TAG }}
token: ${{ secrets.GITHUB_TOKEN }}
release-helm:
runs-on: ubuntu-22.04
permissions:
contents: write
steps:
- name: checkout the source code
uses: actions/checkout@v3
- uses: wistia/parse-tool-versions@v1.0
- uses: earthly/actions-setup@v1
with: { version: "v${{ env.EARTHLY_TOOL_VERSION }}" }
- name: Build and push the helm charts
run: |
./earthly.sh \
--push \
+release-helm \
--repo_owner ${{ github.repository_owner }} \
--token ${{ secrets.GITHUB_TOKEN }}