Skip to content

Commit 4e2d4ea

Browse files
dependabot[bot]mdegat01pvizeli
authored
Bump home-assistant/builder from 2022.01.0 to 2022.03.1 (#80)
* 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] <support@github.com> * Add explicit platform to build step * Use targetplatform to set from * use cosign * bump version * fix build * bump alpine --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Mike Degatano <michael.degatano@gmail.com> Co-authored-by: Pascal Vizeli <pvizeli@syshack.ch>
1 parent 119b02e commit 4e2d4ea

File tree

4 files changed

+18
-17
lines changed

4 files changed

+18
-17
lines changed

.github/workflows/builder.yml

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -46,19 +46,16 @@ jobs:
4646
name: Build ${{ matrix.arch }} plugin
4747
needs: init
4848
runs-on: ubuntu-latest
49+
permissions:
50+
contents: read
51+
packages: write
52+
id-token: write
4953
strategy:
5054
matrix:
5155
arch: ${{ fromJson(needs.init.outputs.architectures) }}
5256
steps:
5357
- name: Checkout the repository
5458
uses: actions/checkout@v3.5.3
55-
56-
- name: Login to DockerHub
57-
if: needs.init.outputs.publish == 'true'
58-
uses: docker/login-action@v2.2.0
59-
with:
60-
username: ${{ secrets.DOCKERHUB_USERNAME }}
61-
password: ${{ secrets.DOCKERHUB_TOKEN }}
6259

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

7572
- name: Build plugin
76-
uses: home-assistant/builder@2022.01.0
73+
uses: home-assistant/builder@2023.06.1
7774
with:
7875
args: |
7976
$BUILD_ARGS \
8077
--${{ matrix.arch }} \
78+
--cosign \
8179
--target /data \
8280
--generic ${{ needs.init.outputs.version }}
8381
env:

.hadolint.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
ignored:
22
- DL3003
33
- DL3006
4-
- DL3018
4+
- DL3018
5+
- DL3029

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
ARG BUILD_FROM
22

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

55
WORKDIR /usr/src
66
ARG BUILD_ARCH

build.yaml

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,16 @@
1-
image: homeassistant/{arch}-hassio-dns
2-
shadow_repository: ghcr.io/home-assistant
1+
image: ghcr.io/home-assistant/{arch}-hassio-dns
32
build_from:
4-
aarch64: ghcr.io/home-assistant/aarch64-base:3.14
5-
armhf: ghcr.io/home-assistant/armhf-base:3.14
6-
armv7: ghcr.io/home-assistant/armv7-base:3.14
7-
amd64: ghcr.io/home-assistant/amd64-base:3.14
8-
i386: ghcr.io/home-assistant/i386-base:3.14
3+
aarch64: ghcr.io/home-assistant/aarch64-base:3.17
4+
armhf: ghcr.io/home-assistant/armhf-base:3.17
5+
armv7: ghcr.io/home-assistant/armv7-base:3.17
6+
amd64: ghcr.io/home-assistant/amd64-base:3.17
7+
i386: ghcr.io/home-assistant/i386-base:3.17
98
codenotary:
109
signer: notary@home-assistant.io
1110
base_image: notary@home-assistant.io
11+
cosign:
12+
base_identity: https://github.com/home-assistant/docker-base/.*
13+
identity: https://github.com/home-assistant/plugin-dns/.*
1214
labels:
1315
io.hass.type: dns
1416
org.opencontainers.image.title: Home Assistant DNS Plugin

0 commit comments

Comments
 (0)