diff --git a/.gitea/workflows/deploy.yaml b/.gitea/workflows/deploy.yaml index 6fe48ab..0b42f52 100644 --- a/.gitea/workflows/deploy.yaml +++ b/.gitea/workflows/deploy.yaml @@ -10,6 +10,10 @@ jobs: build: runs-on: ubuntu-latest + env: + ACCESS_TOKEN_SECRET: ${{ secrets.ACCESS_TOKEN_SECRET }} + REFRESH_TOKEN_SECRET: ${{ secrets.REFRESH_TOKEN_SECRET }} + steps: - name: Checkout repository uses: actions/checkout@v4 @@ -32,6 +36,9 @@ jobs: - name: Build and Push Server run: | echo "🚀 Building Server..." - docker buildx build --load -t crylia/japanese-srs-trainer-wanikani-server:latest -f server/Dockerfile server + docker buildx build \ + --build-arg ACCESS_TOKEN_SECRET=${ACCESS_TOKEN_SECRET} \ + --build-arg REFRESH_TOKEN_SECRET=${REFRESH_TOKEN_SECRET} \ + --load -t crylia/japanese-srs-trainer-wanikani-server:latest -f server/Dockerfile server docker tag crylia/japanese-srs-trainer-wanikani-server:latest 192.168.0.26:5008/japanese-srs-trainer-wanikani-server:latest docker push 192.168.0.26:5008/japanese-srs-trainer-wanikani-server:latest diff --git a/.gitignore b/.gitignore index 3c3629e..2774f14 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,40 @@ -node_modules +# Node modules +node_modules/ +**/node_modules/ + +# Vite / Vue build output +dist/ +build/ +.vite/ + +# Logs +npm-debug.log* +yarn-debug.log* +pnpm-debug.log* + +# Environment files +.env +.env.local +.env.*.local + +# TypeScript +*.tsbuildinfo + +# VSCode +.vscode/ + +# JetBrains +.idea/ + +# System +.DS_Store +Thumbs.db + +# Lint / Typegen +*.d.ts +*.eslintcache + + +# Ignore temporary files +*.tmp +*.temp diff --git a/client/.dockerignore b/client/.dockerignore new file mode 100644 index 0000000..a698bb1 --- /dev/null +++ b/client/.dockerignore @@ -0,0 +1,27 @@ +# Node modules +node_modules +**/node_modules + +# Git +.git +.gitignore + +# Logs +*.log + +# Local dev / editor +.vscode +.idea + +# Build output +dist +build +.vite + +# TypeScript build info +*.tsbuildinfo + +# Environment files (if you want them injected via Docker ENV) +.env +.env.local +.env.*.local diff --git a/client/src/pages/index.vue b/client/src/pages/index.vue index 1929398..dcc312e 100644 --- a/client/src/pages/index.vue +++ b/client/src/pages/index.vue @@ -1,5 +1,10 @@