|
@@ -50,6 +50,12 @@ jobs:
|
|
registry: ghcr.io
|
|
registry: ghcr.io
|
|
username: ${{ github.repository_owner }}
|
|
username: ${{ github.repository_owner }}
|
|
password: ${{ secrets.GITHUB_TOKEN }}
|
|
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
|
|
- name: Build and push images
|
|
uses: docker/build-push-action@v5
|
|
uses: docker/build-push-action@v5
|
|
with:
|
|
with:
|
|
@@ -59,6 +65,7 @@ jobs:
|
|
tags: |
|
|
tags: |
|
|
gogs/gogs:latest
|
|
gogs/gogs:latest
|
|
ghcr.io/gogs/gogs:latest
|
|
ghcr.io/gogs/gogs:latest
|
|
|
|
+ registry.digitalocean.com/gogs/gogs:latest
|
|
- name: Send email on failure
|
|
- name: Send email on failure
|
|
uses: dawidd6/action-send-mail@v3
|
|
uses: dawidd6/action-send-mail@v3
|
|
if: ${{ failure() }}
|
|
if: ${{ failure() }}
|