Skip to content

Commit

Permalink
Merge pull request #7 from magicsword-io/fix-workflow-path
Browse files Browse the repository at this point in the history
move deploy workflow in correct folder
  • Loading branch information
M3NIX authored Sep 4, 2023
2 parents 0d9641c + 842bca0 commit 4c0f728
Showing 1 changed file with 36 additions and 36 deletions.
72 changes: 36 additions & 36 deletions .github/deploy.yml → .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -1,36 +1,36 @@
name: Deploy

on:
push:
branches:
- main

env:
SERVICE_NAME: sigconverter
IMAGE_NAME: sigconverter.io

jobs:
deploy:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v3

- name: Setup Google Cloud SDK
uses: google-github-actions/[email protected]
with:
project_id: ${{ secrets.PROJECT_ID }}
service_account_key: ${{ secrets.GCLOUD_AUTH }}

- name: Configure Docker
run: gcloud auth configure-docker

- name: Build Docker image
run: docker build -t ${{ env.IMAGE_NAME }} .

- name: Push Docker image to Google Container Registry
run: gcloud builds submit --tag gcr.io/${{ secrets.PROJECT_ID }}/${{ env.IMAGE_NAME }}

- name: Deploy to Google Cloud Run
run: gcloud run deploy ${{ env.SERVICE_NAME }} --image gcr.io/${{ secrets.PROJECT_ID }}/${{ env.IMAGE_NAME }} --platform managed
name: Deploy

on:
push:
branches:
- main

env:
SERVICE_NAME: sigconverter
IMAGE_NAME: sigconverter.io

jobs:
deploy:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v3

- name: Setup Google Cloud SDK
uses: google-github-actions/[email protected]
with:
project_id: ${{ secrets.PROJECT_ID }}
service_account_key: ${{ secrets.GCLOUD_AUTH }}

- name: Configure Docker
run: gcloud auth configure-docker

- name: Build Docker image
run: docker build -t ${{ env.IMAGE_NAME }} .

- name: Push Docker image to Google Container Registry
run: gcloud builds submit --tag gcr.io/${{ secrets.PROJECT_ID }}/${{ env.IMAGE_NAME }}

- name: Deploy to Google Cloud Run
run: gcloud run deploy ${{ env.SERVICE_NAME }} --image gcr.io/${{ secrets.PROJECT_ID }}/${{ env.IMAGE_NAME }} --platform managed

0 comments on commit 4c0f728

Please sign in to comment.