This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Home Assistant Operating System build workflow | |
name: JH Development build | |
on: | |
push: | |
branches: | |
- master | |
workflow_dispatch: | |
jobs: | |
prepare: | |
name: Prepare build | |
runs-on: ubuntu-latest | |
permissions: | |
contents: read | |
pull-requests: read | |
packages: write | |
steps: | |
- name: Checkout source | |
uses: actions/checkout@v4 | |
with: | |
persist-credentials: false | |
- name: Set up Docker Buildx | |
uses: docker/[email protected] | |
- name: Log in to the GitHub container registry | |
uses: docker/[email protected] | |
with: | |
registry: ghcr.io | |
username: ${{ github.repository_owner }} | |
password: ${{ secrets.GITHUB_TOKEN }} | |
- name: Build and Push | |
uses: docker/[email protected] | |
id: build_haos_builder | |
with: | |
context: "{{defaultContext}}:develcontainer" | |
file: Dockerfile | |
tags: ghcr.io/${{ github.repository_owner }}/develcontainer:jammy | |
cache-from: ghcr.io/${{ github.repository_owner }}/develcontainer:cache | |
cache-to: ghcr.io/${{ github.repository_owner }}/develcontainer:cache | |
platforms: linux/amd64,linux/arm64 | |
push: true |