Skip to content

Commit

Permalink
try multiplatform build
Browse files Browse the repository at this point in the history
  • Loading branch information
jehy committed Apr 19, 2024
1 parent 31cbb75 commit 446df86
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 9 deletions.
26 changes: 20 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,24 @@ jobs:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push Docker image
uses: docker/build-push-action@v5

- name: Publish
uses: home-assistant/builder@master
with:
context: ./dbstats
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
args: |
--armv7 \
--amd64 \
--aarch64 \
--target dbstats \
--docker-hub hass-dbstats \
--release-tag ${{ steps.meta.outputs.tags[0] }} \
--additional-tag ${{ steps.meta.outputs.tags[1] }} \
--additional-tag ${{ steps.meta.outputs.tags[2] }} \
# - name: Build and push Docker image
# uses: docker/build-push-action@v5
# with:
# context: ./dbstats
# push: true
# tags: ${{ steps.meta.outputs.tags }}
# labels: ${{ steps.meta.outputs.labels }}
5 changes: 5 additions & 0 deletions dbstats/build.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
build_from:
aarch64: ghcr.io/hassio-addons/base-nodejs:0.2.1
amd64: ghcr.io/hassio-addons/base-nodejs:0.2.1
armv7: ghcr.io/hassio-addons/base-nodejs:0.2.1
4 changes: 1 addition & 3 deletions dbstats/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,9 @@ options:
schema:
connectionString: str
arch:
- armhf
- armv7
- aarch64
- amd64
- i386
- armv7
ports:
80/tcp: 6060
ports_description:
Expand Down

0 comments on commit 446df86

Please sign in to comment.