GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - worklifebeyond/push-to-gcr: Github workflow action to push a docker image to Google Cloud Registry

BranchesTags
Open more actions menu

Latest commit

 

History

11 Commits
11 Commits

Folders and files

NameName
Last commit message
Last commit date
README.md
README.md
 
 
action.yml
action.yml
 
 
push-to-gcr.yml
push-to-gcr.yml
 
 

Repository files navigation

push-to-gcr

Minimal Github workflow action to push a docker image to Google Cloud Registry

Add service-account.json to Github secret as GCLOUD_CREDENTIALS

push-to-gcr.yaml

on: push
jobs:
  build:
    runs-on: ubuntu-latest
    steps:
    - uses: actions/checkout@master
    - name: Build the Docker image
      run: |
        echo $GCLOUD_CREDENTIALS > keyfile.json
        cat keyfile.json | docker login -u _json_key --password-stdin https://gcr.io
        docker build . --file Dockerfile --tag gcr.io/${{ secrets.CLOUDSDK_CORE_PROJECT }}/test:v1
        docker push gcr.io/${{ secrets.CLOUDSDK_CORE_PROJECT }}/test:v1
      env:
        GCLOUD_CREDENTIALS: ${{ secrets.GCLOUD_CREDENTIALS }}
        CLOUDSDK_CORE_PROJECT: ${{ secrets.CLOUDSDK_CORE_PROJECT }}

About

Github workflow action to push a docker image to Google Cloud Registry

Resources

Readme
Activity
Custom properties

Stars

0 stars

Watchers

1 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.