diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index aaf0dc532..7899bf748 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -10,9 +10,6 @@ on: concurrency: group: dockerize-${{ github.ref }} -env: - IMAGE: ghcr.io/logto-io/logto - jobs: dockerize: runs-on: ubuntu-latest @@ -27,7 +24,8 @@ jobs: uses: docker/metadata-action@v4 with: images: | - ${{ env.IMAGE }} + ghcr.io/logto-io/logto + svhd/logto # https://github.com/docker/metadata-action#typesemver tags: | type=semver,pattern={{version}} @@ -38,6 +36,12 @@ jobs: - name: Set up Docker Buildx uses: docker/setup-buildx-action@v2 + + - name: Login to DockerHub + uses: docker/login-action@v2 + with: + username: ${{ secrets.DOCKERHUB_USERNAME }} + password: ${{ secrets.DOCKERHUB_TOKEN }} - name: Login to GitHub Container Registry uses: docker/login-action@v2