Skip to content

Commit

Permalink
try deploy google
Browse files Browse the repository at this point in the history
  • Loading branch information
bh2smith committed Sep 19, 2023
1 parent a290291 commit 751a965
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/deploy-google.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Deploy to Google Cloud

on:
push:
branches: [main]
tags: [v*]

jobs:
deploy:
runs-on: ubuntu-latest

steps:
- name: Checkout Repository
uses: actions/checkout@v2

- name: Set up Google Cloud CLI
uses: google-github-actions/setup-gcloud@v0
with:
project_id: eth-cloud-mb
service_account_key: ${{ secrets.GCP_CREDENTIALS }}
export_default_credentials: true

- name: Build and Push Docker Image
run: |
IMAGE_NAME=gcr.io/eth-cloud-mb/arak:latest
DOCKERFILE_PATH=docker/Dockerfile
docker build -t $IMAGE_NAME -f $DOCKERFILE_PATH .
docker push $IMAGE_NAME

0 comments on commit 751a965

Please sign in to comment.