add login with sessian and cleanup
All checks were successful
Build and Push Docker Images / build (push) Successful in 2m34s

This commit is contained in:
Rene Kievits
2025-10-22 02:07:56 +02:00
parent 673d29b05f
commit 1980e14e88
31 changed files with 830 additions and 68 deletions

View File

@@ -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