Push images to DockerHub instead of DigitalOcean
This commit is contained in:
parent
5e6df765b0
commit
d4b3060388
2 changed files with 6 additions and 8 deletions
12
.github/workflows/ci.yml
vendored
12
.github/workflows/ci.yml
vendored
|
@ -16,20 +16,18 @@ jobs:
|
|||
- name: Set up Docker Buildx
|
||||
uses: docker/setup-buildx-action@v1
|
||||
|
||||
- name: Install doctl
|
||||
uses: digitalocean/action-doctl@v2
|
||||
- name: Login to DockerHub
|
||||
uses: docker/login-action@v1
|
||||
with:
|
||||
token: ${{ secrets.DIGITALOCEAN_ACCESS_TOKEN }}
|
||||
|
||||
- name: Log in to DigitalOcean Container Registry
|
||||
run: doctl registry login
|
||||
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
||||
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
||||
|
||||
- name: Build and push
|
||||
id: docker_build
|
||||
uses: docker/build-push-action@v2
|
||||
with:
|
||||
push: true
|
||||
tags: registry.digitalocean.com/ekzhang/rustpad:latest
|
||||
tags: ekzhang/rustpad:latest
|
||||
|
||||
- name: Image digest
|
||||
run: echo ${{ steps.docker_build.outputs.digest }}
|
||||
|
|
|
@ -77,5 +77,5 @@ Rustpad is distributed as a single ~10 MB Docker image, which is built from the
|
|||
`Dockerfile` in this repository. GitHub Actions automatically builds a new image
|
||||
on each push to the `main` branch.
|
||||
|
||||
We continuously deploy a public instance of this image using
|
||||
We deploy a public instance of this image using
|
||||
[DigitalOcean App Platform](https://www.digitalocean.com/products/app-platform/).
|
||||
|
|
Loading…
Add table
Reference in a new issue