Updated workflow

This commit is contained in:
egguy
2023-02-07 14:37:40 +11:00
parent 657b5068e6
commit 0ecb0540d7
2 changed files with 38 additions and 19 deletions
+38
View File
@@ -0,0 +1,38 @@
name: "Test"
on: [push, pull_request]
jobs:
test:
name: Test build
runs-on: ubuntu-latest
steps:
- name: Checkout the repository
uses: actions/checkout@v3
- name: Test build current
uses: home-assistant/builder@master
with:
args: |
--test \
--all \
--target grott-current \
--docker-hub egguy
publish:
needs: test
name: Publish
runs-on: ubuntu-latest
steps:
- name: Checkout the repository
uses: actions/checkout@v3
- name: Login to DockerHub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Publish
uses: home-assistant/builder@master
with:
args: |
--all \
--target grott-current \
--docker-hub user-name-or-space-name
-19
View File
@@ -1,19 +0,0 @@
name: "Test"
on: [push, pull_request]
jobs:
build:
name: Test build
runs-on: ubuntu-latest
steps:
- name: Checkout the repository
uses: actions/checkout@v3
- name: Test build current
uses: home-assistant/builder@master
with:
args: |
--test \
--all \
--target grott-current \
--docker-hub egguy