ci: push Docker images to DigitalOcean Container Registry (#7839)

pull/7849/head
Joe Chen 2024-11-09 19:50:01 -05:00 committed by GitHub
parent 2541348408
commit 7a2dffa95a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 7 additions and 0 deletions

View File

@ -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() }}