Skip to content

Commit

Permalink
Fix for directus 10.8.3
Browse files Browse the repository at this point in the history
  • Loading branch information
NilsBaumgartner1994 committed Jan 8, 2024
1 parent 758298d commit a1c3a2a
Show file tree
Hide file tree
Showing 15 changed files with 6,634 additions and 4,386 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/npmPublish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: NPM Publish
on:
push:
branches:
- master
- main
jobs:
build:
if: ${{ !startsWith(github.event.head_commit.message, '[RELEASE]') }}
Expand All @@ -15,8 +15,8 @@ jobs:
registry-url: 'https://registry.npmjs.org'
- run: git config --global user.name 'Firebolt Caster'
- run: git config --global user.email 'nilsbaumgartner@live.de'
- run: cp README.md ./dev/auto-translation-hook/README.md
- run: cd ./dev/auto-translation-hook && npm ci
- run: cd ./dev/auto-translation-hook && npm run release
- run: cp README.md ./dev/extensions/directus-extension-auto-translation/README.md
- run: cd ./dev/extensions/directus-extension-auto-translation && npm ci
- run: cd ./dev/extensions/directus-extension-auto-translation && npm run release
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
15 changes: 6 additions & 9 deletions dev/docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,7 @@ services:

directus:
container_name: directus-auto-translation
#image: directus/directus:9.16.1
image: directus/directus:9.20.4
# image: directus/directus:latest
image: directus/directus:10.8.3
ports:
- 8055:8055
volumes:
Expand All @@ -15,10 +13,10 @@ services:
- ./uploads:/directus/uploads
# Make sure to also mount the volume when using SQLite
- ./database:/directus/database
# If you want to load extensions from the host
- ./auto-translation-hook/dist/index.js:/directus/extensions/hooks/auto-translation-hook/index.js
# test the AUTO_TRANSLATE_API_KEY_SAVING_PATH
- ./secrets:/directus/secrets
# If you want to load extensions from builded files
#- ./auto-backup-hook/dist/index.js:/directus/extensions/hooks/auto-backup-hook/index.js
# Hotreload dev
- ./extensions:/directus/extensions/
networks:
- directus
environment:
Expand All @@ -36,6 +34,5 @@ services:
ADMIN_PASSWORD: 'd1r3ctu5'

AUTO_TRANSLATE_API_KEY_SAVING_PATH: "/directus/secrets/api-key-in-file.txt"

networks:
directus:
directus:
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
.DS_Store
node_modules
dist
Loading

0 comments on commit a1c3a2a

Please sign in to comment.