mirror of
https://github.com/esphome/home-assistant-addon.git
synced 2024-12-21 16:38:13 +01:00
2cd393816f
Bumps [docker/setup-buildx-action](https://github.com/docker/setup-buildx-action) from 3.7.1 to 3.8.0. - [Release notes](https://github.com/docker/setup-buildx-action/releases) - [Commits](https://github.com/docker/setup-buildx-action/compare/v3.7.1...v3.8.0) --- updated-dependencies: - dependency-name: docker/setup-buildx-action dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com>
42 lines
1.1 KiB
YAML
42 lines
1.1 KiB
YAML
name: Build devcontainer image
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
push:
|
|
branches:
|
|
- main
|
|
paths:
|
|
- .devcontainer/**
|
|
schedule:
|
|
- cron: '0 0 1 * *'
|
|
pull_request:
|
|
branches:
|
|
- main
|
|
paths:
|
|
- .devcontainer/**
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4.2.2
|
|
- name: Log in to the GitHub container registry
|
|
uses: docker/login-action@v3.3.0
|
|
if: github.event_name != 'pull_request'
|
|
with:
|
|
registry: ghcr.io
|
|
username: ${{ github.repository_owner }}
|
|
password: ${{ secrets.GITHUB_TOKEN }}
|
|
- name: Set up QEMU
|
|
uses: docker/setup-qemu-action@v3.2.0
|
|
- name: Set up Docker Buildx
|
|
uses: docker/setup-buildx-action@v3.8.0
|
|
- name: Build and Push
|
|
uses: docker/build-push-action@v6.10.0
|
|
with:
|
|
context: .
|
|
file: .devcontainer/Dockerfile
|
|
tags: ghcr.io/${{ github.repository_owner }}/devcontainer:addons
|
|
push: ${{ github.event_name != 'pull_request' }}
|
|
platforms: linux/amd64,linux/arm64
|