From 291758ddb7380e5716521364bfc95ec445064cb4 Mon Sep 17 00:00:00 2001 From: evazion Date: Tue, 7 Sep 2021 06:33:51 -0500 Subject: [PATCH] ci: push docker images to dockerhub too. --- .github/workflows/test.yaml | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index bc62d8b4b..4bfff1fba 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -30,6 +30,7 @@ jobs: uses: docker/setup-buildx-action@v1 # https://github.com/docker/login-action + # https://github.com/docker/build-push-action/blob/master/docs/advanced/push-multi-registries.md - name: Login to Github Container Registry uses: docker/login-action@v1 with: @@ -37,13 +38,21 @@ jobs: username: ${{ github.repository_owner }} password: ${{ github.token }} + - name: Login to DockerHub + uses: docker/login-action@v1 + with: + username: ${{ secrets.DOCKERHUB_USERNAME }} + password: ${{ secrets.DOCKERHUB_TOKEN }} + # Generate Docker tags from Git tags. # https://github.com/docker/metadata-action - name: Generate Docker tags uses: docker/metadata-action@v3 id: metadata with: - images: ghcr.io/${{ github.repository }} + images: | + docker.io/evazion/danbooru + ghcr.io/danbooru/danbooru tags: | type=sha,format=short,prefix= type=sha,format=long,prefix=