Skip to content

Commit

Permalink
Use ghcr.io/home-assistant/amd64-builder on the action (#83)
Browse files Browse the repository at this point in the history
* Use ghcr.io/home-assistant/amd64-builder on the action

* Update action.yml

* Update action.yml

* Update action.yml

* Update publish.yml
  • Loading branch information
pvizeli authored Mar 24, 2021
1 parent 156de48 commit 5cfc3ff
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 3 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,4 +61,6 @@ jobs:
--target /data \
--with-codenotary "${{ secrets.VCN_USER }}" "${{ secrets.VCN_PASSWORD }}" "${{ secrets.VCN_ORG }}" \
--validate-from "${{ secrets.VCN_ORG }}" \
--validate-cache "${{ secrets.VCN_ORG }}" \
--generic $GIT_TAG_NAME
15 changes: 12 additions & 3 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,21 @@ runs:
echo "::set-output name=version::${input}"
- shell: bash
run: docker pull homeassistant/amd64-builder:${{ steps.version.outputs.version }}
run: docker pull ghcr.io/home-assistant/amd64-builder:${{ steps.version.outputs.version }}

- shell: bash
run: |
bash <(curl https://getvcn.codenotary.com -L)
state="$(vcn authenticate --org home-assistant.io --output json docker://ghcr.io/home-assistant/amd64-builder:${{ steps.version.outputs.version }} | jq '.verification.status // 2')"
if [[ "${state}" != "0" ]]; then
echo "Invalid signature!"
exit 1
fi
- shell: bash
id: builder
run: |
builder=$(docker images homeassistant/amd64-builder:${{ steps.version.outputs.version }} -q)
builder=$(docker images ghcr.io/home-assistant/amd64-builder:${{ steps.version.outputs.version }} -q)
echo "::set-output name=id::$builder"
- shell: bash
Expand All @@ -33,7 +42,7 @@ runs:
-v /var/run/docker.sock:/var/run/docker.sock:ro \
-v ~/.docker:/root/.docker \
-v ${{ github.workspace }}:/data \
homeassistant/amd64-builder:${{ steps.version.outputs.version }} \
ghcr.io/home-assistant/amd64-builder:${{ steps.version.outputs.version }} \
${{ inputs.args }}
- shell: bash
Expand Down

0 comments on commit 5cfc3ff

Please sign in to comment.