-
Notifications
You must be signed in to change notification settings - Fork 0
58 lines (48 loc) · 1.33 KB
/
push.yml
File metadata and controls
58 lines (48 loc) · 1.33 KB
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
name: Push
on:
push:
tags:
- 'v*'
jobs:
push:
runs-on: ubuntu-latest
permissions:
packages: 'write'
contents: 'write'
steps:
- name: 'Checkout'
uses: 'actions/checkout@v6'
with:
fetch-depth: 0 # required to fetch all history for all branches and tags
- name: 'Set VERSION from tag'
run: echo "VERSION=${GITHUB_REF_NAME#v}" >> $GITHUB_ENV
- name: Login to GitHub Container Registry
uses: docker/login-action@v4
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: 'Docker Build & Push'
run: |
make docker-buildx
- name: 'Setup Flux CLI'
uses: fluxcd/flux2/action@main
- name: 'Flux Build & Push'
run: |
make flux-push
- name: 'Flux Tag Latest'
run: |
make flux-tag-latest
- name: 'Build Installer'
run: |
make build-installer
- name: 'Create Release'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
tag: ${{ github.ref_name }}
run: |
gh release create "$tag" \
--repo="$GITHUB_REPOSITORY" \
--title="${tag#v}" \
--generate-notes \
dist/install.yaml