diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml index 35280ab50..d7c2a45db 100644 --- a/.github/workflows/docker.yml +++ b/.github/workflows/docker.yml @@ -50,6 +50,12 @@ jobs: registry: ghcr.io username: ${{ github.repository_owner }} password: ${{ secrets.GITHUB_TOKEN }} + - name: Login to DigitalOcean Container registry + uses: docker/login-action@v3 + with: + registry: registry.digitalocean.com + username: ${{ secrets.DIGITALOCEAN_USERNAME }} + password: ${{ secrets.DIGITALOCEAN_ACCESS_TOKEN }} - name: Build and push images uses: docker/build-push-action@v5 with: @@ -59,6 +65,7 @@ jobs: tags: | gogs/gogs:latest ghcr.io/gogs/gogs:latest + registry.digitalocean.com/gogs/gogs:latest - name: Send email on failure uses: dawidd6/action-send-mail@v3 if: ${{ failure() }}