-
Notifications
You must be signed in to change notification settings - Fork 1
DO NOT MERGE - Track to upstream #3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Changes from 82 commits
9b7745c
8f6f418
7a2c374
9377766
680ab9d
34ea639
ca0acb3
ed8c313
fe6baba
347be01
40052a2
871ef6d
12c5b90
61c5ee2
bdd33c7
a999109
3aa2031
d25a5d2
c068307
4ab0a1d
c36f27b
75316d8
422bfa8
fa6d889
f915755
8015a05
576ed9a
fe500ca
6587567
f8c3be5
aa77e3a
3b396f8
33ca930
2c736a0
43fbc42
848f01e
e48652f
118f4a2
1b41af7
1d2394e
739e2ab
ac8a19e
b63675b
fbd7cba
825322d
65c275a
ba84741
fb5e13e
b6635fc
f1d146e
231fff5
5073f2e
451f834
39cc82c
e9c8e4d
3d0c7f1
47822ec
fc6baa1
845782a
e6e6403
746757d
e5b63ea
262118e
8c5298e
0c37ad1
04264fe
c4b0074
cbffb1e
246ccfb
13fa87c
a14f46d
a148f47
3609629
7e21cf3
2a2cea3
8f724d1
acc189b
2f594a8
036a514
3df856d
6f556f6
42ec251
aa3319c
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,48 @@ | ||
| name: Build and Push to Google Artifact Registry | ||
|
|
||
| on: | ||
| push: | ||
| tags: | ||
| - "*.*.*" | ||
| branches: | ||
| - kencove | ||
|
|
||
| permissions: | ||
| contents: read | ||
| id-token: write | ||
|
|
||
| jobs: | ||
| build: | ||
| runs-on: ubuntu-latest | ||
| timeout-minutes: 5 | ||
|
|
||
| steps: | ||
| - name: Checkout code | ||
| uses: actions/checkout@v4 | ||
|
|
||
| - name: Authenticate to Google Cloud | ||
| id: auth | ||
| uses: google-github-actions/auth@v2 | ||
| with: | ||
| workload_identity_provider: ${{ secrets.GCP_WORKLOAD_IDENTITY_PROVIDER }} | ||
| service_account: ${{ secrets.GCP_SERVICE_ACCOUNT }} | ||
|
|
||
| - name: Set up Cloud SDK | ||
| uses: google-github-actions/setup-gcloud@v2 | ||
|
|
||
| - name: Determine image tag | ||
| id: tag | ||
| run: | | ||
| if [[ "${{ github.ref_type }}" == "tag" ]]; then | ||
| echo "img_tag=${{ github.ref_name }}" >> "$GITHUB_OUTPUT" | ||
| else | ||
| echo "img_tag=$(echo ${{ github.sha }} | cut -c1-8)" >> "$GITHUB_OUTPUT" | ||
| fi | ||
|
|
||
| - name: Trigger Cloud Build | ||
| run: | | ||
| gcloud builds submit \ | ||
| --config=cloudbuild.yaml \ | ||
| --project=kencove-prod \ | ||
| --substitutions=_IMG_TAG=${{ steps.tag.outputs.img_tag }} \ | ||
| --async | ||
|
Comment on lines
+42
to
+48
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Two distinct issues in this block:
🛠️ Proposed fix — block on result and quote the substitution - name: Trigger Cloud Build
+ timeout-minutes: 120
run: |
gcloud builds submit \
--config=cloudbuild.yaml \
--project=kencove-prod \
- --substitutions=_IMG_TAG=${{ steps.tag.outputs.img_tag }} \
- --async
+ --substitutions="_IMG_TAG=${{ steps.tag.outputs.img_tag }}"
-
- timeout-minutes: 5
+ timeout-minutes: 130If keeping async is a deliberate choice (e.g., to avoid long-running Actions minutes), at minimum add the quote and document that build status must be monitored in Cloud Build console. 🤖 Prompt for AI Agents |
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -84,7 +84,7 @@ RSpec/AnyInstance: | |
| Enabled: false | ||
|
|
||
| Metrics/BlockNesting: | ||
| Max: 5 | ||
| Max: 6 | ||
|
|
||
| Rails/I18nLocaleTexts: | ||
| Enabled: false | ||
|
|
@@ -106,3 +106,10 @@ Rails/StrongParametersExpect: | |
|
|
||
| Rails/RedirectBackOrTo: | ||
| Enabled: false | ||
|
|
||
| Rails/UnknownEnv: | ||
| Environments: | ||
| - development | ||
| - test | ||
| - production | ||
| - local | ||
|
Comment on lines
+110
to
+115
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🧩 Analysis chain🏁 Script executed: #!/bin/bash
# Verify that a local environment configuration exists
echo "=== Looking for local.rb in config/environments ==="
fd -t f 'local.rb' config/environments 2>/dev/null || echo "No local.rb found"
echo ""
echo "=== Checking for references to Rails.env.local or RAILS_ENV=local ==="
rg -n 'Rails\.env\.local|RAILS_ENV.*local' --type ruby 2>/dev/null || echo "No matches found"
echo ""
echo "=== Checking for any environment configuration references ==="
rg -n 'config/environments' --type ruby | head -20
echo ""
echo "=== Looking at the config/environments directory structure ==="
ls -la config/environments/ 2>/dev/null || echo "config/environments directory not found"Repository: kencove/docuseal Length of output: 949 Add The 🤖 Prompt for AI Agents |
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Overly broad tag glob may fire on non-semver tags.
The pattern
*.*.*matches any tag with two dots (e.g.,release.candidate.1,hotfix.pr.42). Restrict to semver if that is the intent:🛠️ Tighter semver pattern
Or use the semver filter from
docker/metadata-actionand drop this restriction entirely.📝 Committable suggestion
🤖 Prompt for AI Agents