-
-
Notifications
You must be signed in to change notification settings - Fork 192
50 lines (43 loc) · 1.42 KB
/
release-proxy.yml
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
---
name: Release Build (HA Proxy-Addon)
on:
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
name: Build HA Proxy-Addon [${{ matrix.arch }}]
strategy:
matrix:
arch: ["amd64"]
# arch: ["aarch64", "amd64", "armhf", "armv7", "i386"]
steps:
- name: Check out repository
uses: actions/checkout@v4
- name: Get information
id: info
uses: home-assistant/actions/helpers/info@master
with:
path: "./home-assistant-addon-proxy"
- name: Set Environment
run: |
echo "IMAGE=$(echo ${{ steps.info.outputs.image }} | cut -d'/' -f3)" >> $GITHUB_ENV;
if [[ -z "${{ github.head_ref }}" ]] && [[ "${{ github.event_name }}" == "push" ]]; then
echo "BUILD_ARGS=" >> $GITHUB_ENV;
fi
- name: Login to GitHub Container Registry
if: env.BUILD_ARGS != '--test'
uses: docker/login-action@v3.3.0
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.CR_PAT }}
- name: Build+Push add-on
uses: home-assistant/builder@2024.08.2
with:
args: |
${{ env.BUILD_ARGS }} \
--${{ matrix.arch }} \
--target /data/home-assistant-addon-proxy \
--image "${{ env.IMAGE }}" \
--docker-hub "ghcr.io/${{ github.repository_owner }}" \
--addon