Skip to content

Commit

Permalink
Merge pull request #9 from lucasrod16/7-deployment-pipeline
Browse files Browse the repository at this point in the history
Add deployment pipeline
  • Loading branch information
lucasrod16 authored Sep 28, 2024
2 parents 9627e65 + c4a9242 commit bf2107d
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 3 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Deploy Website

on:
push:
tags:
- v*

permissions:
contents: read

jobs:
deploy-site:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0

- name: Google Cloud Auth
uses: google-github-actions/auth@62cf5bd3e4211a0a0b51f2c6d6a37129d828611d # v2.1.5
with:
project_id: "groovy-momentum-434802-g9"
workload_identity_provider: ${{ secrets.WORKLOAD_IDENTITY_PROVIDER }}

- name: Deploy
env:
IMAGE_VERSION: ${{ github.ref_name }}
run: ./scripts/deploy.sh
4 changes: 1 addition & 3 deletions scripts/deploy.sh
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
#!/bin/bash

set -e

IMAGE_VERSION="v0.0.5"
set -euo pipefail

cd ui && npm run build
cd - || exit 1
Expand Down

0 comments on commit bf2107d

Please sign in to comment.