Skip to content

Commit

Permalink
single ci
Browse files Browse the repository at this point in the history
  • Loading branch information
jbhv12 committed Apr 18, 2024
1 parent 1c7343a commit 30837e9
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 32 deletions.
30 changes: 0 additions & 30 deletions .github/workflows/cloud-run-deploy.yml

This file was deleted.

25 changes: 23 additions & 2 deletions .github/workflows/docker-build.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Build and Push Docker Image
name: Build/Push Docker Image and update the service

on:
push:
Expand Down Expand Up @@ -40,4 +40,25 @@ jobs:
tags: ${{ secrets.DOCKERHUB_USERNAME }}/web3-testimonials:${{ env.TAG }}

- name: Logout from DockerHub
run: docker logout
run: docker logout
deploy:
runs-on: ubuntu-latest
needs: build
steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Authenticate with Google
uses: google-github-actions/auth@v0
with:
credentials_json: ${{ secrets.GOOGLE_CREDENTIALS }}

- name: Deploy to cloud run
id: 'deploy'
uses: 'google-github-actions/deploy-cloudrun@v2'
with:
service: 'web3-testimonials'
image: 'jbhv12/web3-testimonials:latest'

- name: 'Use output'
run: 'curl "${{ steps.deploy.outputs.url }}"'

0 comments on commit 30837e9

Please sign in to comment.