Skip to content

Commit

Permalink
Updated CI script
Browse files Browse the repository at this point in the history
  • Loading branch information
egguy committed Feb 7, 2023
1 parent df123e6 commit d6ea3f9
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,14 +52,18 @@ jobs:
addon: ${{fromJSON(needs.variables.outputs.ADDON_LIST)}}
steps:
- uses: actions/checkout@v3
- name: Docker login
- name: Login to docker
uses: docker/login-action@v2
if: (github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/tags/')) && (github.event_name == 'push' || github.event_name == 'workflow_dispatch')
run: echo ${{ secrets.DOCKER_SECRET }} | docker login -u egguy --password-stdin
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build
run: |
cp ${{ matrix.addon }}/build.yaml ${{ matrix.addon }}
#cp ${{ matrix.addon }}/build.yaml ${{ matrix.addon }}
docker run --rm --privileged \
-v /home/runner/.docker:/root/.docker \
-v /run/docker.sock:/run/docker.sock:rw \
-v $(pwd)/${{ matrix.addon }}:/data homeassistant/amd64-builder --${{ matrix.arch }} -t /data \
${{ env.DOCKER_ARGS }}
${{ env.DOCKER_ARGS }}

0 comments on commit d6ea3f9

Please sign in to comment.