Преглед на файлове

Push images to DockerHub instead of DigitalOcean

Eric Zhang преди 4 години
родител
ревизия
d4b3060388
променени са 2 файла, в които са добавени 6 реда и са изтрити 8 реда
  1. 5 7
      .github/workflows/ci.yml
  2. 1 1
      README.md

+ 5 - 7
.github/workflows/ci.yml

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

+ 1 - 1
README.md

@@ -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/).