Skip to content

Commit

Permalink
Enable cosign on build / ditch cas from action (#167)
Browse files Browse the repository at this point in the history
  • Loading branch information
pvizeli authored Jun 9, 2023
1 parent 42eb742 commit 34af3d2
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 14 deletions.
1 change: 1 addition & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ jobs:
args: |
--${{ matrix.architecture }} \
--target /data \
--cosign \
--generic $GIT_TAG_NAME
env:
CAS_API_KEY: ${{ secrets.CAS_TOKEN }}
14 changes: 0 additions & 14 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,24 +17,10 @@ runs:
fi
echo "version=${input}" >> "$GITHUB_OUTPUT"
- uses: home-assistant/actions/helpers/cas@master

- shell: bash
run: |
docker pull ghcr.io/home-assistant/amd64-builder:${{ steps.version.outputs.version }}
- shell: bash
run: |
for j in {1..15}; do
if CAS_API_KEY= cas authenticate --silent --signerID [email protected] docker://ghcr.io/home-assistant/amd64-builder:${{ steps.version.outputs.version }}; then
exit 0
fi
sleep $((5 * j))
done
echo "Invalid signature!"
exit 1
- shell: bash
id: builder
run: |
Expand Down

0 comments on commit 34af3d2

Please sign in to comment.