Skip to content

[wip] docker setup intent for easy running #3

[wip] docker setup intent for easy running

[wip] docker setup intent for easy running #3

Workflow file for this run

name: Build
on:
push:
branches:
- "feature/docker"
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: code checkout
uses: actions/checkout@v2
- name: install the gcloud cli
uses: google-github-actions/setup-gcloud@v0
with:
project_id: ${{ secrets.GOOGLE_PROJECT }}
service_account_key: ${{ secrets.GOOGLE_APPLICATION_CREDENTIALS }}
export_default_credentials: true
- name: build and push the docker image
env:
GOOGLE_PROJECT: ${{ secrets.GOOGLE_PROJECT }}
run: |
gcloud auth configure-docker us-central1-docker.pkg.dev
docker build -t us-central1-docker.pkg.dev/$GOOGLE_PROJECT/snake-docker/snake:latest .
docker push us-central1-docker.pkg.dev/$GOOGLE_PROJECT/snake-docker/snake:latest