소스 검색

Remove GitHub Actions, switch to gcloud

Eric Zhang 4 년 전
부모
커밋
21e15b76ed
2개의 변경된 파일11개의 추가작업 그리고 51개의 파일을 삭제
  1. 0 45
      .github/workflows/ci.yml
  2. 11 6
      README.md

+ 0 - 45
.github/workflows/ci.yml

@@ -1,45 +0,0 @@
-name: CI
-
-on:
-  push:
-    branches:
-      - main
-
-jobs:
-  docker:
-    name: Docker Build and Push
-    runs-on: ubuntu-latest
-    steps:
-      - name: Set up QEMU
-        uses: docker/setup-qemu-action@v1
-
-      - name: Set up Docker Buildx
-        uses: docker/setup-buildx-action@v1
-
-      - name: Login to DockerHub
-        uses: docker/login-action@v1
-        with:
-          username: ${{ secrets.DOCKERHUB_USERNAME }}
-          password: ${{ secrets.DOCKERHUB_TOKEN }}
-
-      - name: Set up Cloud SDK
-        uses: google-github-actions/setup-gcloud@master
-        with:
-          project_id: ${{ secrets.GCP_PROJECT_ID }}
-          service_account_key: ${{ secrets.GCP_SA_KEY }}
-          export_default_credentials: true
-
-      - name: Login to GCR
-        run: gcloud auth configure-docker
-
-      - name: Build and push
-        id: docker_build
-        uses: docker/build-push-action@v2
-        with:
-          push: true
-          tags: |
-            ekzhang/rustpad:latest
-            gcr.io/rustpad/rustpad:latest
-
-      - name: Image digest
-        run: echo ${{ steps.docker_build.outputs.digest }}

+ 11 - 6
README.md

@@ -73,13 +73,18 @@ wasm-pack test rustpad-wasm --chrome --headless
 
 ## Deployment
 
-Rustpad is distributed as a single ~10 MB Docker image, which is built
-automatically from the `Dockerfile` in this repository. You can pull the latest
-version of the image with
+Rustpad is continuously deployed as a single ~10 MB Docker image, which is built
+automatically from the `Dockerfile` in this repository. We use
+[Google Cloud Build](https://cloud.google.com/build) and
+[Google Cloud Run](https://cloud.google.com/run).
+
+To build and run a Docker image, use the following commands, then open
+`http://localhost:3030` in your browser.
 
 ```
-docker pull ekzhang/rustpad
+docker build -t rustpad .
 ```
 
-We deploy a public instance of this image using
-[Google Cloud Run](https://cloud.google.com/run).
+```
+docker run --rm -dp 3030:3030 rustpad
+```