diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index c2c782e..de91925 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -76,6 +76,8 @@ jobs: needs: - metadata - build-web + permissions: + packages: write strategy: matrix: arch: @@ -89,11 +91,13 @@ jobs: - name: Check out repository uses: actions/checkout@v3 - - name: Login to DockerHub - uses: docker/login-action@v2.0.0 - with: - username: ${{ secrets.DOCKERHUB_USERNAME }} - password: ${{ secrets.DOCKERHUB_TOKEN }} + - name: Login to Github Container Registry + run: echo ${{ github.token }} | docker login ghcr.io -u ${{ github.repository_owner }} --password-stdin + # - name: Login to DockerHub + # uses: docker/login-action@v2.0.0 + # with: + # username: ${{ secrets.DOCKERHUB_USERNAME }} + # password: ${{ secrets.DOCKERHUB_TOKEN }} - name: "Get Web build" uses: actions/download-artifact@v1 @@ -102,7 +106,7 @@ jobs: path: webapp/build - name: ${{ matrix.arch }} / ${{ needs.metadata.outputs.version }} - uses: home-assistant/builder@2022.06.2 + uses: home-assistant/builder@master # continue-on-error: true with: args: | diff --git a/config.yaml b/config.yaml index 2ff4fd5..5f3c545 100644 --- a/config.yaml +++ b/config.yaml @@ -1,7 +1,7 @@ name: Shortumation version: v0.6.3 slug: shortumation -image: asosnovsky/shortumation-{arch} +image: ghcr.io/asosnovsky/shortumation-{arch} url: "https://github.com/asosnovsky/Shortumation" description: "A homeassitant addon which provides better UI for automations & scripts." arch: