Switch to Docker Hub. (#92)
This commit is contained in:
parent
80111d02cc
commit
6c9394db00
|
@ -5,8 +5,8 @@ on:
|
||||||
branches: ["main"]
|
branches: ["main"]
|
||||||
|
|
||||||
env:
|
env:
|
||||||
REGISTRY: us-central1-docker.pkg.dev
|
REGISTRY: docker.io
|
||||||
IMAGE: quic-video/deploy/moq-rs:latest
|
IMAGE: ${{ github.repository }}
|
||||||
SERVICE: api # Restart the API service TODO and relays
|
SERVICE: api # Restart the API service TODO and relays
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
|
@ -28,19 +28,10 @@ jobs:
|
||||||
# I'm paying for Depot for faster ARM builds.
|
# I'm paying for Depot for faster ARM builds.
|
||||||
- uses: depot/setup-action@v1
|
- uses: depot/setup-action@v1
|
||||||
|
|
||||||
# Log in to GCP
|
- uses: docker/login-action@v3
|
||||||
- uses: google-github-actions/auth@v1
|
|
||||||
id: auth
|
|
||||||
with:
|
with:
|
||||||
token_format: access_token
|
username: ${{ secrets.DOCKER_USERNAME }}
|
||||||
credentials_json: ${{ secrets.GCP_SERVICE_ACCOUNT_KEY }}
|
password: ${{ secrets.DOCKER_PASSWORD }}
|
||||||
|
|
||||||
# Log into the docker registry via the GCP token
|
|
||||||
- uses: docker/login-action@v1
|
|
||||||
with:
|
|
||||||
registry: ${{ env.REGISTRY }}
|
|
||||||
username: oauth2accesstoken
|
|
||||||
password: ${{ steps.auth.outputs.access_token }}
|
|
||||||
|
|
||||||
# Build and push Docker image with Depot
|
# Build and push Docker image with Depot
|
||||||
- uses: depot/build-push-action@v1
|
- uses: depot/build-push-action@v1
|
||||||
|
@ -51,6 +42,11 @@ jobs:
|
||||||
tags: ${{env.REGISTRY}}/${{env.IMAGE}}
|
tags: ${{env.REGISTRY}}/${{env.IMAGE}}
|
||||||
platforms: linux/amd64,linux/arm64
|
platforms: linux/amd64,linux/arm64
|
||||||
|
|
||||||
|
# Log in to GCP
|
||||||
|
- uses: google-github-actions/auth@v1
|
||||||
|
with:
|
||||||
|
credentials_json: ${{ secrets.GCP_SERVICE_ACCOUNT_KEY }}
|
||||||
|
|
||||||
# Deploy to cloud run
|
# Deploy to cloud run
|
||||||
- uses: google-github-actions/deploy-cloudrun@v1
|
- uses: google-github-actions/deploy-cloudrun@v1
|
||||||
with:
|
with:
|
||||||
|
|
Loading…
Reference in New Issue