Skip to content

Commit 433f1a2

Browse files
authored
Merge branch 'main' into philprime/added-tvos-app
2 parents 144dd33 + bedf514 commit 433f1a2

File tree

183 files changed

+5038
-5317
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

183 files changed

+5038
-5317
lines changed

.env.example

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,15 @@ export DISCORD_BOT_TOKEN="__DISCORD_BOT_TOKEN__"
2424
export SENTRY_BACKEND_DSN="__SENTRY_BACKEND_DSN__"
2525
export SENTRY_FRONTEND_DSN="__SENTRY_BACKEND_DSN__"
2626
export SENTRY_POTAL_DSN="__SENTRY_POTAL_DSN__"
27+
export SENTRY_SHOPATO_DSN="__SENTRY_SHOPATO_DSN__"
2728
export SENTRY_AUTH_TOKEN="__SENTRY_AUTH_TOKEN__"
2829

2930
export POTAL_TOKEN="__POTAL_TOKEN__"
3031
export POTAL_URL="__POTAL_URL__"
3132

3233
export POTATO_CHANNEL="__POTATO_CHANNEL__"
33-
export POTATO_STOCKS_CHANNEL="__POTATO_STOCKS_CHANNEL__"
3434
export POTATO_SLACK_USER_ID="__POTATO_SLACK_USER_ID__"
35+
36+
export SHOPIFY_SHOP_DOMAIN="SHOPIFY_SHOP_DOMAIN"
37+
export SHOPIFY_ADMIN_ACCESS_TOKEN="SHOPIFY_ADMIN_ACCESS_TOKEN"
38+
export RAILS_MASTER_KEY="RAILS_MASTER_KEY"

.github/workflows/codeql.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,11 @@ jobs:
2424

2525
steps:
2626
- name: Checkout repository
27-
uses: actions/checkout@v4
27+
uses: actions/checkout@v5
2828

2929
# Initializes the CodeQL tools for scanning.
3030
- name: Initialize CodeQL
31-
uses: github/codeql-action/init@v3
31+
uses: github/codeql-action/init@v4
3232
with:
3333
languages: ${{ matrix.language }}
3434
# If you wish to specify custom queries, you can do so here or in a config file.
@@ -42,7 +42,7 @@ jobs:
4242
# Autobuild attempts to build any compiled languages (C/C++, C#, Go, or Java).
4343
# If this step fails, then you should remove it and run the build manually (see below)
4444
- name: Autobuild
45-
uses: github/codeql-action/autobuild@v3
45+
uses: github/codeql-action/autobuild@v4
4646

4747
# ℹ️ Command-line programs to run using the OS shell.
4848
# 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun
@@ -55,6 +55,6 @@ jobs:
5555
# ./location_of_script_within_repo/buildscript.sh
5656

5757
- name: Perform CodeQL Analysis
58-
uses: github/codeql-action/analyze@v3
58+
uses: github/codeql-action/analyze@v4
5959
with:
6060
category: "/language:${{matrix.language}}"

.github/workflows/docker.yml

Lines changed: 19 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@ jobs:
1616
contents: read
1717
steps:
1818
- name: Checkout repository
19-
uses: actions/checkout@v4
19+
uses: actions/checkout@v5
2020
- name: Build Potal Docker image
21-
uses: docker/build-push-action@471d1dc4e07e5cdedd4c2171150001c434f0b7a4
21+
uses: docker/build-push-action@263435318d21b8e681c14492fe198d362a7d2c83
2222
with:
2323
context: .
2424
file: ./docker/potal/Dockerfile
@@ -31,10 +31,25 @@ jobs:
3131
contents: read
3232
steps:
3333
- name: Checkout repository
34-
uses: actions/checkout@v4
34+
uses: actions/checkout@v5
3535
- name: Build Backend Docker image
36-
uses: docker/build-push-action@471d1dc4e07e5cdedd4c2171150001c434f0b7a4
36+
uses: docker/build-push-action@263435318d21b8e681c14492fe198d362a7d2c83
3737
with:
3838
context: .
3939
file: ./docker/backend/Dockerfile
4040
push: false
41+
42+
build-shopato:
43+
runs-on: ubuntu-latest
44+
permissions:
45+
packages: write
46+
contents: read
47+
steps:
48+
- name: Checkout repository
49+
uses: actions/checkout@v5
50+
- name: Build Backend Docker image
51+
uses: docker/build-push-action@263435318d21b8e681c14492fe198d362a7d2c83
52+
with:
53+
context: .
54+
file: ./docker/shopato/Dockerfile
55+
push: false

.github/workflows/go-ci.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,10 @@ jobs:
1616
runs-on: ubuntu-latest
1717

1818
steps:
19-
- uses: actions/checkout@v4
19+
- uses: actions/checkout@v5
2020

2121
- name: Setup Go
22-
uses: actions/setup-go@v5
22+
uses: actions/setup-go@v6
2323
with:
2424
go-version: 'stable'
2525

@@ -32,7 +32,7 @@ jobs:
3232
run: go vet .
3333

3434
- name: Run lint
35-
uses: golangci/golangci-lint-action@v6
35+
uses: golangci/golangci-lint-action@v9
3636
with:
3737
working-directory: ./potal
3838

.github/workflows/js-ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
runs-on: ubuntu-latest
1717

1818
steps:
19-
- uses: actions/checkout@v4
19+
- uses: actions/checkout@v5
2020

2121
- name: Run npm install
2222
run: npm install

.github/workflows/php-ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030
- 5432:5432
3131

3232
steps:
33-
- uses: actions/checkout@v4
33+
- uses: actions/checkout@v5
3434

3535
- name: Setup PHP
3636
uses: shivammathur/setup-php@v2

cloudbuild.yaml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,18 @@
11
steps:
2+
- name: 'gcr.io/cloud-builders/docker'
3+
id: build-shopato
4+
args: [
5+
'build',
6+
'-f', './docker/shopato/Dockerfile',
7+
'-t', 'us-central1-docker.pkg.dev/$PROJECT_ID/shopato/shopato:$COMMIT_SHA',
8+
'-t', 'us-central1-docker.pkg.dev/$PROJECT_ID/shopato/shopato:latest',
9+
'.',
10+
]
11+
waitFor: ['-']
12+
- name: 'gcr.io/cloud-builders/docker'
13+
id: push-shopato
14+
args: [ 'push', 'us-central1-docker.pkg.dev/$PROJECT_ID/shopato/shopato:$COMMIT_SHA']
15+
waitFor: ['build-shopato']
216
- name: 'gcr.io/cloud-builders/docker'
317
id: build-potal
418
args: [
@@ -27,6 +41,18 @@ steps:
2741
id: push-backend
2842
args: [ 'push', 'us-central1-docker.pkg.dev/$PROJECT_ID/backend/backend:$COMMIT_SHA']
2943
waitFor: ['build-backend']
44+
- name: 'gcr.io/google.com/cloudsdktool/cloud-sdk'
45+
id: deploy-shopato
46+
entrypoint: gcloud
47+
args:
48+
- 'run'
49+
- 'deploy'
50+
- 'shopato'
51+
- '--image'
52+
- 'us-central1-docker.pkg.dev/$PROJECT_ID/shopato/shopato:$COMMIT_SHA'
53+
- '--region'
54+
- 'us-central1'
55+
waitFor: ['push-shopato']
3056
- name: 'gcr.io/google.com/cloudsdktool/cloud-sdk'
3157
id: deploy-potal
3258
entrypoint: gcloud
@@ -63,6 +89,7 @@ steps:
6389
images:
6490
- 'us-central1-docker.pkg.dev/$PROJECT_ID/backend/backend:latest'
6591
- 'us-central1-docker.pkg.dev/$PROJECT_ID/potal/potal:latest'
92+
- 'us-central1-docker.pkg.dev/$PROJECT_ID/shopato/shopato:latest'
6693
artifacts:
6794
objects:
6895
location: gs://gib-potato-assets/

composer.json

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -12,20 +12,20 @@
1212
],
1313
"require": {
1414
"php": ">=8.4",
15-
"cakephp/authentication": "^3.2.2",
16-
"cakephp/cakephp": "^5.2.0",
17-
"cakephp/migrations": "^4.6.2",
15+
"cakephp/authentication": "^3.3.2",
16+
"cakephp/cakephp": "^5.2.9",
17+
"cakephp/migrations": "^4.8.2",
1818
"cakephp/plugin-installer": "^2.0.1",
19-
"lcobucci/jwt": "^5.5.0",
19+
"lcobucci/jwt": "^5.6.0",
2020
"paragonie/csp-builder": "^3.0.2",
21-
"sentry/sentry": "^4.10.0",
22-
"sentry/sentry-agent": "dev-main"
21+
"sentry/sentry": "^4.17.0",
22+
"sentry/sentry-agent": "^0.1.1"
2323
},
2424
"require-dev": {
25-
"cakephp/bake": "^3.3.0",
26-
"cakephp/cakephp-codesniffer": "^5.2.0",
27-
"phpstan/phpstan": "^1.12.23",
28-
"phpunit/phpunit": "^10.5.45"
25+
"cakephp/bake": "^3.5.0",
26+
"cakephp/cakephp-codesniffer": "^5.3.0",
27+
"phpstan/phpstan": "^1.12.32",
28+
"phpunit/phpunit": "^10.5.54"
2929
},
3030
"repositories": [
3131
{

0 commit comments

Comments
 (0)