From e6e51be5a5435b7b8d86189accf75b44303dba40 Mon Sep 17 00:00:00 2001 From: Ari Date: Wed, 1 Jun 2022 21:50:01 -0400 Subject: [PATCH] using dockerhub --- .github/workflows/build.yml | 7 +++---- .github/workflows/test.yml | 5 ++--- config.yaml | 2 +- docker-compose.build.yaml | 2 +- 4 files changed, 7 insertions(+), 9 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index f46ea15..1a2ef80 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -21,11 +21,10 @@ jobs: - name: Login to DockerHub uses: docker/login-action@v2.0.0 with: - registry: ghcr.io - username: ${{ github.actor }} - password: ${{ secrets.GITHUB_TOKEN }} + username: ${{ secrets.DOCKERHUB_USERNAME }} + password: ${{ secrets.DOCKERHUB_TOKEN }} - - name: Build & Push + - name: Build & Push to Dockerhub uses: home-assistant/builder@2022.03.1 with: args: | diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index cb12ed8..6adc786 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -92,9 +92,8 @@ jobs: - name: Login to DockerHub uses: docker/login-action@v2.0.0 with: - registry: ghcr.io - username: ${{ github.actor }} - password: ${{ secrets.GITHUB_TOKEN }} + username: ${{ secrets.DOCKERHUB_USERNAME }} + password: ${{ secrets.DOCKERHUB_TOKEN }} - name: Build & Push to Dockerhub - ${{ matrix.arch }} / ${{ needs.metadata.outputs.version }} uses: home-assistant/builder@2022.03.1 diff --git a/config.yaml b/config.yaml index 7848d71..e6d955c 100644 --- a/config.yaml +++ b/config.yaml @@ -1,7 +1,7 @@ name: Shortumation version: v0.1.14 slug: shortumation -image: ghcr.io/asosnovsky/shortumation-{arch} +image: asosnovsky/shortumation-{arch} url: "https://github.com/asosnovsky/Shortumation" description: "A homeassitant addon which provides better UI for automations & scripts." arch: diff --git a/docker-compose.build.yaml b/docker-compose.build.yaml index f2d365e..c4c9093 100644 --- a/docker-compose.build.yaml +++ b/docker-compose.build.yaml @@ -1,7 +1,7 @@ version: '3' services: addon: - image: "ghcr.io/asosnovsky/shortumation-${ARCH:-amd64}:${BUILD_TAG:-edge}" + image: "asosnovsky/shortumation-${ARCH:-amd64}:${BUILD_TAG:-edge}" build: context: "./" dockerfile: "./Dockerfile"