Skip to content

Commit

Permalink
Merge pull request #1022 from bcc-code/develop
Browse files Browse the repository at this point in the history
Develop -> Master (Upgade Directus)
  • Loading branch information
KillerX authored Oct 10, 2024
2 parents f00e826 + 233d795 commit 5b80a5e
Show file tree
Hide file tree
Showing 82 changed files with 29,324 additions and 23,878 deletions.
24 changes: 12 additions & 12 deletions .semaphore/semaphore.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@ blocks:
- make install
- cache store node-$(checksum pnpm-lock.yaml) $(pnpm store path)
- make build
- 'docker build -t "europe-west4-docker.pkg.dev/utils-332514/btv-platform/cms:${SEMAPHORE_GIT_SHA:0:7}" -t europe-west4-docker.pkg.dev/utils-332514/btv-platform/cms:$SEMAPHORE_GIT_BRANCH .'
- 'docker build -t "europe-west4-docker.pkg.dev/utils-332514/btv-platform/cms:${SEMAPHORE_GIT_SHA:0:7}" -t europe-west4-docker.pkg.dev/utils-332514/btv-platform/cms:${SEMAPHORE_GIT_BRANCH//\//_} .'
- 'docker push "europe-west4-docker.pkg.dev/utils-332514/btv-platform/cms:${SEMAPHORE_GIT_SHA:0:7}" '
- "docker push europe-west4-docker.pkg.dev/utils-332514/btv-platform/cms:$SEMAPHORE_GIT_BRANCH"
- "docker push europe-west4-docker.pkg.dev/utils-332514/btv-platform/cms:${SEMAPHORE_GIT_BRANCH//\\//_}"
- 'echo "europe-west4-docker.pkg.dev/utils-332514/btv-platform/cms:${SEMAPHORE_GIT_SHA:0:7}" > cms.txt'
- artifact push workflow cms.txt
prologue:
Expand Down Expand Up @@ -58,33 +58,33 @@ blocks:
- cp version.json ./backend
- CGO_ENABLED=0 go build -v -o ./backend/bin ./backend/cmd/api
- cd ./backend
- 'docker build -t "europe-west4-docker.pkg.dev/utils-332514/btv-platform/api:${SEMAPHORE_GIT_SHA:0:7}" -t europe-west4-docker.pkg.dev/utils-332514/btv-platform/api:$SEMAPHORE_GIT_BRANCH .'
- 'docker build -t "europe-west4-docker.pkg.dev/utils-332514/btv-platform/api:${SEMAPHORE_GIT_SHA:0:7}" -t europe-west4-docker.pkg.dev/utils-332514/btv-platform/api:${SEMAPHORE_GIT_BRANCH//\//_} .'
- 'docker push "europe-west4-docker.pkg.dev/utils-332514/btv-platform/api:${SEMAPHORE_GIT_SHA:0:7}"'
- "docker push europe-west4-docker.pkg.dev/utils-332514/btv-platform/api:$SEMAPHORE_GIT_BRANCH"
- "docker push europe-west4-docker.pkg.dev/utils-332514/btv-platform/api:${SEMAPHORE_GIT_BRANCH//\\//_}"
- 'echo "europe-west4-docker.pkg.dev/utils-332514/btv-platform/api:${SEMAPHORE_GIT_SHA:0:7}" > api.txt'
- artifact push workflow api.txt
- cd ..
- CGO_ENABLED=0 go build -v -o ./backend/bin ./backend/cmd/jobs
- cd ./backend
- 'docker build -t "europe-west4-docker.pkg.dev/utils-332514/btv-platform/jobs:${SEMAPHORE_GIT_SHA:0:7}" -t europe-west4-docker.pkg.dev/utils-332514/btv-platform/jobs:$SEMAPHORE_GIT_BRANCH .'
- 'docker build -t "europe-west4-docker.pkg.dev/utils-332514/btv-platform/jobs:${SEMAPHORE_GIT_SHA:0:7}" -t europe-west4-docker.pkg.dev/utils-332514/btv-platform/jobs:${SEMAPHORE_GIT_BRANCH//\//_} .'
- 'docker push "europe-west4-docker.pkg.dev/utils-332514/btv-platform/jobs:${SEMAPHORE_GIT_SHA:0:7}"'
- "docker push europe-west4-docker.pkg.dev/utils-332514/btv-platform/jobs:$SEMAPHORE_GIT_BRANCH"
- "docker push europe-west4-docker.pkg.dev/utils-332514/btv-platform/jobs:${SEMAPHORE_GIT_BRANCH//\\//_}"
- 'echo "europe-west4-docker.pkg.dev/utils-332514/btv-platform/jobs:${SEMAPHORE_GIT_SHA:0:7}" > jobs.txt'
- artifact push workflow jobs.txt
- cd ..
- CGO_ENABLED=0 go build -v -o ./backend/bin ./backend/cmd/rewriter
- cd ./backend
- 'docker build -t "europe-west4-docker.pkg.dev/utils-332514/btv-platform/rewriter:${SEMAPHORE_GIT_SHA:0:7}" -t europe-west4-docker.pkg.dev/utils-332514/btv-platform/rewriter:$SEMAPHORE_GIT_BRANCH .'
- 'docker build -t "europe-west4-docker.pkg.dev/utils-332514/btv-platform/rewriter:${SEMAPHORE_GIT_SHA:0:7}" -t europe-west4-docker.pkg.dev/utils-332514/btv-platform/rewriter:${SEMAPHORE_GIT_BRANCH//\//_} .'
- 'docker push "europe-west4-docker.pkg.dev/utils-332514/btv-platform/rewriter:${SEMAPHORE_GIT_SHA:0:7}"'
- "docker push europe-west4-docker.pkg.dev/utils-332514/btv-platform/rewriter:$SEMAPHORE_GIT_BRANCH"
- "docker push europe-west4-docker.pkg.dev/utils-332514/btv-platform/rewriter:${SEMAPHORE_GIT_BRANCH//\\//_}"
- 'echo "europe-west4-docker.pkg.dev/utils-332514/btv-platform/rewriter:${SEMAPHORE_GIT_SHA:0:7}" > rewriter.txt'
- artifact push workflow rewriter.txt
- cd ..
- CGO_ENABLED=0 go build -v -o ./backend/bin ./backend/cmd/videomanipulator
- cd ./backend
- 'docker build -f Dockerfile.ffmpeg -t "europe-west4-docker.pkg.dev/utils-332514/btv-platform/videomanipulator:${SEMAPHORE_GIT_SHA:0:7}" -t europe-west4-docker.pkg.dev/utils-332514/btv-platform/videomanipulator:$SEMAPHORE_GIT_BRANCH .'
- 'docker build -f Dockerfile.ffmpeg -t "europe-west4-docker.pkg.dev/utils-332514/btv-platform/videomanipulator:${SEMAPHORE_GIT_SHA:0:7}" -t europe-west4-docker.pkg.dev/utils-332514/btv-platform/videomanipulator:${SEMAPHORE_GIT_BRANCH//\//_} .'
- 'docker push "europe-west4-docker.pkg.dev/utils-332514/btv-platform/videomanipulator:${SEMAPHORE_GIT_SHA:0:7}"'
- "docker push europe-west4-docker.pkg.dev/utils-332514/btv-platform/videomanipulator:$SEMAPHORE_GIT_BRANCH"
- "docker push europe-west4-docker.pkg.dev/utils-332514/btv-platform/videomanipulator:${SEMAPHORE_GIT_BRANCH//\\//_}"
- 'echo "europe-west4-docker.pkg.dev/utils-332514/btv-platform/videomanipulator:${SEMAPHORE_GIT_SHA:0:7}" > videomanipulator.txt'
- artifact push workflow videomanipulator.txt
secrets:
Expand All @@ -100,9 +100,9 @@ blocks:
- scripts/gen-version.sh
- cp version.json ./migrations
- cd migrations
- 'docker build -t "europe-west4-docker.pkg.dev/utils-332514/btv-platform/migrations:${SEMAPHORE_GIT_SHA:0:7}" -t europe-west4-docker.pkg.dev/utils-332514/btv-platform/migrations:$SEMAPHORE_GIT_BRANCH .'
- 'docker build -t "europe-west4-docker.pkg.dev/utils-332514/btv-platform/migrations:${SEMAPHORE_GIT_SHA:0:7}" -t europe-west4-docker.pkg.dev/utils-332514/btv-platform/migrations:${SEMAPHORE_GIT_BRANCH//\//_} .'
- 'docker push "europe-west4-docker.pkg.dev/utils-332514/btv-platform/migrations:${SEMAPHORE_GIT_SHA:0:7}" '
- "docker push europe-west4-docker.pkg.dev/utils-332514/btv-platform/migrations:$SEMAPHORE_GIT_BRANCH"
- "docker push europe-west4-docker.pkg.dev/utils-332514/btv-platform/migrations:${SEMAPHORE_GIT_BRANCH//\\//_}"
- 'echo "europe-west4-docker.pkg.dev/utils-332514/btv-platform/migrations:${SEMAPHORE_GIT_SHA:0:7}" > migrations.txt'
- artifact push workflow migrations.txt
secrets:
Expand Down
1 change: 1 addition & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ init:
cd ./cms && make init

diff:
@if [ -z "${name}" ]; then echo "Add a name with make diff name=migration_name_here"; exit 1; fi
./scripts/db_diff.sh $(name)
cd ./backend && make ./sqlc/.generated

Expand Down
7 changes: 6 additions & 1 deletion backend/sqlc/directus-files.sql.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

120 changes: 77 additions & 43 deletions backend/sqlc/models.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion cms/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@ node_modules
uploads
.env

extensions
dist

.vscode
File renamed without changes.
2 changes: 1 addition & 1 deletion cms/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
FROM gcr.io/cloudsql-docker/gce-proxy:1.30.1 AS sqlproxy

FROM directus/directus:10.7.2 AS prod
FROM directus/directus:11.1.0 AS prod
COPY --from=sqlproxy /cloud_sql_proxy /cloud_sql_proxy
WORKDIR /directus
COPY ./extensions /directus/extensions/
Expand Down
Loading

0 comments on commit 5b80a5e

Please sign in to comment.