trying ha builder

This commit is contained in:
ari committed 2022-05-15 16:08:42 -04:00
1 parent c9e6bb78da
commit 6372ec77f7
1 file changed
+23 -14
+23 -14
View File
@@ -11,10 +11,10 @@ on:
jobs: jobs:
build: build:
runs-on: ubuntu-latest runs-on: ubuntu-latest
name: Build ${{ github.ref }} / ${{ matrix.arch }} name: Deploy
strategy: # strategy:
matrix: # matrix:
arch: ["aarch64", "amd64", "armhf", "armv7", "i386"] # arch: ["aarch64", "amd64", "armhf", "armv7", "i386"]
steps: steps:
- name: Check out repository - name: Check out repository
@@ -30,14 +30,23 @@ jobs:
username: ${{ secrets.DOCKERHUB_USERNAME }} username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }} password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build ${{ steps.get_version.outputs.VERSION }} / ${{ matrix.arch }} # - name: Build ${{ steps.get_version.outputs.VERSION }} / ${{ matrix.arch }}
run: | # run: |
ARCH=${{ matrix.arch }} \ # ARCH=${{ matrix.arch }} \
BUILD_TAG=${{ steps.get_version.outputs.VERSION }} \ # BUILD_TAG=${{ steps.get_version.outputs.VERSION }} \
docker-compose -f docker-compose.build.yaml build # docker-compose -f docker-compose.build.yaml build
- name: Push ${{ steps.get_version.outputs.VERSION }} / ${{ matrix.arch }} # - name: Push ${{ steps.get_version.outputs.VERSION }} / ${{ matrix.arch }}
run: | # run: |
ARCH=${{ matrix.arch }} \ # ARCH=${{ matrix.arch }} \
BUILD_TAG=${{ steps.get_version.outputs.VERSION }} \ # BUILD_TAG=${{ steps.get_version.outputs.VERSION }} \
docker-compose -f docker-compose.build.yaml push # docker-compose -f docker-compose.build.yaml push
- name: Publish
uses: home-assistant/builder@2022.03.1
with:
args: |
--all \
--version ${{ steps.get_version.outputs.VERSION }} \
--target . \
--docker-hub asosnovsky/shortumation