-
Notifications
You must be signed in to change notification settings - Fork 19
47 lines (41 loc) · 1.34 KB
/
build-epiniod.yml
File metadata and controls
47 lines (41 loc) · 1.34 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
name: Build epiniod image
on:
workflow_dispatch:
release:
types: [published]
jobs:
build-image:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v6
with:
submodules: recursive
fetch-depth: 0
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to GitHub Docker Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- uses: chrisdickinson/setup-yq@latest # Install yq
- uses: WyriHaximus/github-action-helm3@v4 # Install helm
- name: Docker image tag
id: get-tag
run: |
helm repo add epinio https://epinio.github.io/helm-charts
helm repo update
latestRelease=$(helm show chart epinio/epinio | yq r - version)
echo "::set-output name=tag::$latestRelease"
- name: Build and push
uses: docker/build-push-action@v6
with:
push: true
context: images/.
tags: ghcr.io/epinio/epiniod:${{ steps.get-tag.outputs.tag }}, ghcr.io/epinio/epiniod:latest
build-args: |
VERSION=${{ steps.get-tag.outputs.tag }}