Delete action.yml

This commit is contained in:
Alexandre
2022-01-19 22:09:29 +01:00
committed by GitHub
parent 4c55a08433
commit 950fdd0bf7

View File

@@ -1,68 +0,0 @@
name: "Home Assistant builder"
description: "Multi-purpose cross-compile docker builder"
inputs:
args:
description: "Arguments passed to the builder"
required: true
default: "--help"
runs:
using: "composite"
steps:
- shell: bash
id: version
run: |
input=$(echo "${{ github.action_path }}" | cut -d"/" -f8 )
if [[ "${input}" == "master" ]] || [[ -z "${input}" ]]; then
input="latest"
fi
echo "::set-output name=version::${input}"
- 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 notary@home-assistant.io 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: |
builder=$(docker images ghcr.io/home-assistant/amd64-builder:${{ steps.version.outputs.version }} -q)
echo "::set-output name=id::$builder"
- shell: bash
id: build
run: |
env > "${{ github.action_path }}/env_file"
sed -i "/\(HOME\|TERM\|PWD\|HOSTNAME\|PATH\|SHLVL\|USER\|GOROOT\)/d" "${{ github.action_path }}/env_file"
docker run --rm --privileged \
-v /var/run/docker.sock:/var/run/docker.sock:ro \
-v ~/.docker:/root/.docker \
-v ${{ github.workspace }}:/data \
--env-file "${{ github.action_path }}/env_file" \
ghcr.io/home-assistant/amd64-builder:${{ steps.version.outputs.version }} \
${{ inputs.args }}
- shell: bash
id: verify
run: |
docker images \
--format "table {{.Repository}}:{{.Tag}}\t{{.Size}}" \
--filter reference="*/*" \
--filter reference="*" \
--filter since=${{ steps.builder.outputs.id }}
branding:
icon: "home"
color: "blue"