mirror of
https://github.com/hassio-addons/addon-grocy.git
synced 2025-05-04 11:11:30 +00:00
Apply updated repository structure & CI workflow (#166)
This commit is contained in:
parent
7286253b63
commit
291259a03f
7 changed files with 1931 additions and 25 deletions
19
.github/workflows/ci.yaml
vendored
19
.github/workflows/ci.yaml
vendored
|
@ -132,13 +132,17 @@ jobs:
|
|||
uses: actions/cache@v2.1.5
|
||||
with:
|
||||
path: /tmp/.docker-cache
|
||||
key: docker-${{ github.ref }}-${{ matrix.architecture }}-${{ github.sha }}
|
||||
key:
|
||||
docker-${{ github.ref }}-${{ matrix.architecture }}-${{ github.sha
|
||||
}}
|
||||
restore-keys: |
|
||||
docker-${{ github.ref }}-${{ matrix.architecture }}
|
||||
- name: 🏗 Set up QEMU
|
||||
uses: docker/setup-qemu-action@v1.0.2
|
||||
- name: 🏗 Set up Docker Buildx
|
||||
uses: docker/setup-buildx-action@v1.1.2
|
||||
- name: 🏗 Set up CodeNotary
|
||||
run: bash <(curl https://getvcn.codenotary.com -L)
|
||||
- name: ℹ️ Compose build flags
|
||||
id: flags
|
||||
run: |
|
||||
|
@ -160,6 +164,19 @@ jobs:
|
|||
echo "::error ::Could not determine platform for architecture ${{ matrix.architecture }}"
|
||||
exit 1
|
||||
fi
|
||||
- name: ⤵️ Download base image
|
||||
run: docker pull "${{ steps.flags.outputs.from }}"
|
||||
- name: ✅ Verify authenticity of base image
|
||||
run: |
|
||||
vcn authenticate \
|
||||
"docker://${{ steps.flags.outputs.from }}"
|
||||
vcn authenticate \
|
||||
--output json \
|
||||
--signerID 0x03e406879fd89e52f38f4aab0061266d1183980a \
|
||||
"docker://${{ steps.flags.outputs.from }}" \
|
||||
| jq \
|
||||
--exit-status \
|
||||
'.verification.status == 0'
|
||||
- name: 🚀 Build
|
||||
uses: docker/build-push-action@v2.4.0
|
||||
with:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue