Skip to content

Use Artifact Registry instead of Container Registry AND Change Authentication#6

Open
WeeSooJun wants to merge 12 commits intou1i:masterfrom
WeeSooJun:master
Open

Use Artifact Registry instead of Container Registry AND Change Authentication#6
WeeSooJun wants to merge 12 commits intou1i:masterfrom
WeeSooJun:master

Conversation

@WeeSooJun
Copy link
Copy Markdown

@WeeSooJun WeeSooJun commented Apr 6, 2024

Setup

Google Cloud

  • Enable Google Cloud Run here
  • Create a new repository on Google Cloud Platform, this can be done using the web console (search for "repositories (Artifact Repository)" or CLI. In my case I have created the new repository with the same name as the application

Github

  • Add in the following repository secrets (or environment secrets if you want to maintain different environments)
  • Steps to add secrets
    1. Go to your repository
    2. Click "Settings" near the top
    3. Click "Secrets and variables" then "Actions"
    4. Click new repository secret (or environment secret if you want to maintain different environments)
    5. "Name": name of the secret, list of secret names below, "Secret": enter the corresponding secret
  • Here are some of the secrets you need to fill up
    • GCP_PROJECT (your project id)
    • GCP_CREDENTIALS (the credentials generated from IAM in Google Cloud you can generate JSON format credential, it is surrounded by "{" and "}")
    • GCP_APPLICATION (name of the application, you can give it any name you want)
  • Refer to this link for a successful build on my fork

Live view

Access the website here

@WeeSooJun WeeSooJun changed the title Use Artifact Registry instead of Container Registry Use Artifact Registry instead of Container Registry AND Change Authentication Apr 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant