Skip to content

Commit c458b42

Browse files
committed
Fix
1 parent dc298c4 commit c458b42

File tree

2 files changed

+19
-3
lines changed

2 files changed

+19
-3
lines changed

.github/workflows/cd-api.yml

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
- name: Checkout
1414
uses: actions/checkout@v4
1515
with:
16-
fetch-depth: 2 # required so we can compare with previous commit
16+
fetch-depth: 0 # we need full history for git log
1717

1818
- name: Install jq
1919
run: sudo apt-get install -y jq
@@ -66,7 +66,23 @@ jobs:
6666
if: steps.check.outputs.changed == 'true'
6767
uses: google-github-actions/setup-gcloud@v2
6868
with:
69-
project_id: ${{ secrets.GCP_PROJECT_ID }}
69+
project_id: compass-130ba
70+
71+
- name: Install Tofu (Terraform)
72+
run: |
73+
sudo apt-get update
74+
sudo apt-get install -y wget unzip
75+
LATEST=https://github.com/opentofu/opentofu/releases/download/v1.10.5/tofu_1.10.5_linux_amd64.zip
76+
cd /tmp || exit 1
77+
curl -LO "$LATEST"
78+
unzip -o tofu_*_linux_amd64.zip
79+
sudo mv tofu /usr/local/bin/
80+
rm tofu_*_linux_amd64.zip
81+
info "OpenTofu version: $(tofu version)"
82+
83+
- name: Configure Docker for Artifact Registry
84+
run: |
85+
gcloud auth configure-docker us-west1-docker.pkg.dev --quiet
7086
7187
- name: Run deploy script
7288
if: steps.check.outputs.changed == 'true'

backend/api/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@compass/api",
33
"description": "Backend API endpoints",
4-
"version": "1.0.2",
4+
"version": "1.0.3",
55
"private": true,
66
"scripts": {
77
"watch:serve": "tsx watch src/serve.ts",

0 commit comments

Comments
 (0)