diff --git a/.gitea/workflows/deploy.yml b/.gitea/workflows/deploy.yml index 7785d75..6f718a6 100644 --- a/.gitea/workflows/deploy.yml +++ b/.gitea/workflows/deploy.yml @@ -25,30 +25,19 @@ jobs: needs: lint-frontend runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4 - - - name: Setup Bun - uses: oven-sh/setup-bun@v1 - - - name: Install dependencies - run: bun install - - - name: Generate Prisma client - run: | - DATABASE_URL="${{ secrets.DATABASE_URL }}" bun run prisma generate + - name: Checkout + uses: actions/checkout@v4 - name: Build frontend - run: bun run build - - - name: Login to Docker Registry run: | - echo "${{ secrets.DOCKER_REGISTRY_PASSWORD }}" | docker login -u "${{ secrets.DOCKER_REGISTRY_USER }}" --password-stdin ${{ vars.DOCKER_REGISTRY }} + docker build \ + -t 172.17.0.1:5000/eu:latest \ + -f ./Dockerfile \ + kotosoft-id-frontend - - name: Build and push Docker image + - name: Push frontend run: | - docker build -t ${{ vars.DOCKER_REGISTRY }}/${{ vars.DOCKER_IMAGE }}:latest . - docker push ${{ vars.DOCKER_REGISTRY }}/${{ vars.DOCKER_IMAGE }}:latest - + docker push 172.17.0.1:5000/eu:latest deploy: needs: build-frontend