Skip to content

Commit

Permalink
use cosign
Browse files Browse the repository at this point in the history
  • Loading branch information
pvizeli committed Jun 29, 2023
1 parent 3500eae commit d9fc6e1
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
12 changes: 5 additions & 7 deletions .github/workflows/builder.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,20 +46,17 @@ 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/checkout@v3.5.3

- name: Login to DockerHub
if: needs.init.outputs.publish == 'true'
uses: docker/login-action@v2.2.0
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}

- name: Login to GitHub Container Registry
if: needs.init.outputs.publish == 'true'
uses: docker/login-action@v2.2.0
Expand All @@ -78,6 +75,7 @@ jobs:
args: |
$BUILD_ARGS \
--${{ matrix.arch }} \
--cosign \
--target /data \
--generic ${{ needs.init.outputs.version }}
env:
Expand Down
6 changes: 4 additions & 2 deletions build.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
image: homeassistant/{arch}-hassio-audio
shadow_repository: ghcr.io/home-assistant
image: ghcr.io/home-assistant/{arch}-hassio-audio
build_from:
aarch64: ghcr.io/home-assistant/aarch64-base:3.17
armhf: ghcr.io/home-assistant/armhf-base:3.17
Expand All @@ -9,6 +8,9 @@ build_from:
codenotary:
signer: notary@home-assistant.io
base_image: notary@home-assistant.io
cosign:
base_identity: https://github.com/home-assistant/docker-base/.*
identity: https://github.com/home-assistant/plugin-audio/.*
args:
ALSA_LIB_VERSION: 1.2.8
ALSA_TOOLS_VERSION: 1.2.5
Expand Down

0 comments on commit d9fc6e1

Please sign in to comment.