Skip to content

Commit

Permalink
Bump home-assistant/builder from 2022.01.0 to 2022.03.1 (#80)
Browse files Browse the repository at this point in the history
* Bump home-assistant/builder from 2022.01.0 to 2022.03.1

Bumps [home-assistant/builder](https://github.com/home-assistant/builder) from 2022.01.0 to 2022.03.1.
- [Release notes](https://github.com/home-assistant/builder/releases)
- [Commits](home-assistant/builder@2022.01.0...2022.03.1)

---
updated-dependencies:
- dependency-name: home-assistant/builder
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <[email protected]>

* Add explicit platform to build step

* Use targetplatform to set from

* use cosign

* bump version

* fix build

* bump alpine

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Mike Degatano <[email protected]>
Co-authored-by: Pascal Vizeli <[email protected]>
  • Loading branch information
3 people committed Jun 29, 2023
1 parent 119b02e commit 4e2d4ea
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 17 deletions.
14 changes: 6 additions & 8 deletions .github/workflows/builder.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,19 +46,16 @@ jobs:
name: Build ${{ matrix.arch }} plugin
needs: init
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
id-token: write
strategy:
matrix:
arch: ${{ fromJson(needs.init.outputs.architectures) }}
steps:
- name: Checkout the repository
uses: actions/[email protected]

- name: Login to DockerHub
if: needs.init.outputs.publish == 'true'
uses: docker/[email protected]
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}

- name: Login to GitHub Container Registry
if: needs.init.outputs.publish == 'true'
Expand All @@ -73,11 +70,12 @@ jobs:
run: echo "BUILD_ARGS=--test" >> $GITHUB_ENV

- name: Build plugin
uses: home-assistant/builder@2022.01.0
uses: home-assistant/builder@2023.06.1
with:
args: |
$BUILD_ARGS \
--${{ matrix.arch }} \
--cosign \
--target /data \
--generic ${{ needs.init.outputs.version }}
env:
Expand Down
3 changes: 2 additions & 1 deletion .hadolint.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
ignored:
- DL3003
- DL3006
- DL3018
- DL3018
- DL3029
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
ARG BUILD_FROM

FROM golang:1.15-alpine3.13 AS builder
FROM --platform=amd64 golang:1.15-alpine3.13 AS builder

WORKDIR /usr/src
ARG BUILD_ARCH
Expand Down
16 changes: 9 additions & 7 deletions build.yaml
Original file line number Diff line number Diff line change
@@ -1,14 +1,16 @@
image: homeassistant/{arch}-hassio-dns
shadow_repository: ghcr.io/home-assistant
image: ghcr.io/home-assistant/{arch}-hassio-dns
build_from:
aarch64: ghcr.io/home-assistant/aarch64-base:3.14
armhf: ghcr.io/home-assistant/armhf-base:3.14
armv7: ghcr.io/home-assistant/armv7-base:3.14
amd64: ghcr.io/home-assistant/amd64-base:3.14
i386: ghcr.io/home-assistant/i386-base:3.14
aarch64: ghcr.io/home-assistant/aarch64-base:3.17
armhf: ghcr.io/home-assistant/armhf-base:3.17
armv7: ghcr.io/home-assistant/armv7-base:3.17
amd64: ghcr.io/home-assistant/amd64-base:3.17
i386: ghcr.io/home-assistant/i386-base:3.17
codenotary:
signer: [email protected]
base_image: [email protected]
cosign:
base_identity: https://github.com/home-assistant/docker-base/.*
identity: https://github.com/home-assistant/plugin-dns/.*
labels:
io.hass.type: dns
org.opencontainers.image.title: Home Assistant DNS Plugin
Expand Down

0 comments on commit 4e2d4ea

Please sign in to comment.