Skip to content

finalize first proxy addon release workflow. #2

finalize first proxy addon release workflow.

finalize first proxy addon release workflow. #2

Workflow file for this run

---
name: Release Build (HA Proxy-Addon)
jobs:
build:
runs-on: ubuntu-latest
name: Build HA Proxy-Addon
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/[email protected]
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.CR_PAT }}
- name: Build+Push add-on
uses: home-assistant/[email protected]
with:
args: |
${{ env.BUILD_ARGS }} \
--all \
--target /data/home-assistant-addon-proxy \
--image "${{ env.IMAGE }}" \
--docker-hub "ghcr.io/${{ github.repository_owner }}" \
--addon