diff --git a/.gitea/workflows/deploy.yml b/.gitea/workflows/deploy.yml index 885c8a0..9f18c7e 100644 --- a/.gitea/workflows/deploy.yml +++ b/.gitea/workflows/deploy.yml @@ -12,24 +12,24 @@ jobs: - name: Checkout code uses: actions/checkout@v2 - # - name: Set up Docker Buildx - # uses: docker/setup-buildx-action@v3 + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v3 - # - name: Login to Docker Hub - # uses: docker/login-action@v3 - # with: - # username: ${{ secrets.REGISTRY_USERNAME }} - # password: ${{ secrets.REGISTRY_TOKEN }} - # registry: git.fascinated.cc + - name: Login to Docker Hub + uses: docker/login-action@v3 + with: + username: ${{ secrets.REGISTRY_USERNAME }} + password: ${{ secrets.REGISTRY_TOKEN }} + registry: git.fascinated.cc - # - name: Build and push - # uses: docker/build-push-action@v6 - # with: - # context: . - # push: true - # tags: git.fascinated.cc/fascinated/scoresaber-reloaded:latest - # build-args: | - # GIT_REV=${{ gitea.sha }} + - name: Build and push + uses: docker/build-push-action@v6 + with: + context: . + push: true + tags: git.fascinated.cc/fascinated/scoresaber-reloaded:latest + build-args: | + GIT_REV=${{ gitea.sha }} - name: Install kubectl uses: azure/setup-kubectl@v4 diff --git a/Dockerfile b/Dockerfile index 83cd7d9..aaeb8e3 100644 --- a/Dockerfile +++ b/Dockerfile @@ -41,7 +41,7 @@ COPY --from=builder --chown=nextjs:nodejs /app/package.json ./package.json COPY --from=builder --chown=nextjs:nodejs /app/next.config.mjs ./next.config.mjs USER nextjs -EXPOSE 80 -ENV HOSTNAME="0.0.0.0" -ENV PORT=80 + +EXPOSE 3000 + CMD ["pnpm", "start"]