|
1 | | -# RunPod Worker HelloWorld |
| 1 | +# runpod-worker-helloworld |
2 | 2 |
|
3 | | -> Hello World on [RunPod](https://www.runpod.io/) serverless |
| 3 | +> "Hello World" on [RunPod](https://www.runpod.io/) serverless |
| 4 | +
|
| 5 | +--- |
4 | 6 |
|
5 | 7 | <!-- toc --> |
6 | 8 |
|
7 | 9 | - [Setup](#setup) |
8 | 10 | - [Local testing](#local-testing) |
9 | 11 | - [Deploy to Dockerhub](#deploy-to-dockerhub) |
| 12 | + * [Automatically deploy with Github Actions](#automatically-deploy-with-github-actions) |
10 | 13 | - [Use your Docker image on RunPod serverless](#use-your-docker-image-on-runpod-serverless) |
11 | 14 | - [Interact with your RunPod API](#interact-with-your-runpod-api) |
12 | 15 | * [Health status](#health-status) |
@@ -52,6 +55,17 @@ INFO | Local testing complete, exiting. |
52 | 55 | * Push your Docker image to Dockerhub like this `docker push <dockerhub_username>/<repository_name>:<tag>`, in this case: `docker push timpietruskyblibla/runpod-worker-helloworld:1.0.1` |
53 | 56 | * Once this is done, you can check your Dockerhub account to find the image |
54 | 57 |
|
| 58 | +### Automatically deploy with Github Actions |
| 59 | + |
| 60 | +The repo also contains a workflow that publishes the image to Docker hub using Github Actions. If you want to use this, you should add these secrets to your repo: |
| 61 | + |
| 62 | +| Configuration Variable | Description | Example Value | |
| 63 | +| ---------------------- | ------------------------------------------------------------ | -------------------------- | |
| 64 | +| `DOCKERHUB_USERNAME` | Your Docker Hub username. | `your-username` | |
| 65 | +| `DOCKERHUB_TOKEN` | Your Docker Hub token for authentication. | `your-token` | |
| 66 | +| `DOCKERHUB_REPO` | The repository on Docker Hub where the image will be pushed. | `timpietruskyblibla` | |
| 67 | +| `DOCKERHUB_IMG` | The name of the image to be pushed to Docker Hub. | `runpod-worker-helloworld` | |
| 68 | + |
55 | 69 | ## Use your Docker image on RunPod serverless |
56 | 70 |
|
57 | 71 | * Create a [new template](https://runpod.io/console/serverless/user/templates) by clicking on `New Template` |
|
0 commit comments