Skip to content

Build and push runtime image #3

Build and push runtime image

Build and push runtime image #3

Workflow file for this run

on: [workflow_dispatch]
name: Build and push runtime image
jobs:
build:
name: Build and push runtime image
runs-on: ubuntu-latest
env:
IMAGE_NAME: gcr.io/${{ secrets.GCP_PROJECT_ID }}/runtime
steps:
- name: Checkout repository
uses: actions/checkout@v3
- id: 'auth'
uses: 'google-github-actions/auth@v1'
with:
credentials_json: '${{ secrets.GCP_CREDENTIALS }}'
- name: 'Set up Cloud SDK'
uses: 'google-github-actions/setup-gcloud@v1'
- name: Configure Docker
run: gcloud auth configure-docker --quiet
- name: Build Docker image
run: docker build . --file runtime.Dockerfile -t $IMAGE_NAME
- name: Push Docker image
run: docker push $IMAGE_NAME