diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 30466a19..99cf9748 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -31,17 +31,18 @@ jobs: uses: docker/metadata-action@v4 id: metadata with: - images: ghcr.io/discordjs-japan/${{ env.IMAGE_NAME }} + images: ghcr.io/${{ github.repository_owner }}/${{ env.IMAGE_NAME }} tags: | - type=ref,event=branch type=semver,pattern={{version}} type=semver,pattern={{major}}.{{minor}} - type=semver,pattern={{major}} + type=semver,pattern={{major}},enable=${{ !startsWith(github.ref, 'refs/tags/v0.') }} + type=edge,branch=main - name: Build and push Docker image uses: docker/build-push-action@0565240e2d4ab88bba5387d719585280857ece09 # v5.0.0 with: context: . + push: true platforms: linux/amd64,linux/arm64 tags: ${{ steps.metadata.outputs.tags }} labels: ${{ steps.metadata.outputs.labels }}