Skip to content

Latest commit

 

History

History
72 lines (66 loc) · 3.03 KB

render.mdx

File metadata and controls

72 lines (66 loc) · 3.03 KB
title description
Render Deployment + Docker
Welcome to our official documentation!

How to make a Docker Image.

Github Steps

  • Sign up for GitHub if you haven't already
  • Visit the Interstellar repository, and click Create Fork
  • Click Settings or "..." on Mobile.
  • Scroll down and click Secrets and Variables, then click Actions
  • Click New Repository Secret
  • Create DOCKERHUB_TOKEN (This is the token you saved earlier.)
  • Create DOCKERHUB_USERNAME (This is the username of your Docker account.)
  • Create DOCKERHUB_NAME (This is your repository name on Docker)
  • Go to the top of your screen and click Actions, in between Pull Requests & Projects.
  • Click Configure under Docker Image
  • Remove all of the code in the box and replace it with this.
name: Publish image to Docker Hub

on:
  [workflow_dispatch]

jobs:
  publish_image:
    runs-on: ubuntu-latest
    steps:
      - name: checkout
        uses: actions/checkout@v3
      - name: build
        run: |
          docker build . -t ${{ secrets.DOCKERHUB_USERNAME}}/${{ secrets.DOCKERHUB_NAME}}:latest
      - name: publish
        run: |
          docker login -u ${{ secrets.DOCKERHUB_USERNAME}} -p ${{ secrets.DOCKERHUB_TOKEN}}
          docker push ${{ secrets.DOCKERHUB_USERNAME}}/${{ secrets.DOCKERHUB_NAME}}:latest
  • Click Commit Changes, then click Commit Changes again.
  • Go back to the Actions tab
  • Click Publish image underneath "All workflows"
  • Click Run workflow, then click it again.
  • Click All workflows and wait for the circle to go from yellow to green.
A. If you're on mobile, make sure the code is formatted and not all one line or it won't work.\ B. If you want to make another docker repo, follow the same steps and put the new docker name in the Secrets tab. ## How to Deploy to Render Note: If your Render account gets suspended, you must use a different email to create another account. ### Temp Gmail Services: - [Smailpro](https://smailpro.com/) - [Emailnator](https://emailnator.com/)

Step 1

  • Go to the Render dashboard, and make an account. (You must use Gmail or it will make you verify with payment information.)

Step 2

  • Click New + and then click Web Service.
  • Click Deploy an existing image from a registry
  • Put the link as the docker image you just made, and click next.

Step 3

  • Name the project
  • Make the instance type free
  • And then click Create Web Service.