cd/cd: fix
Build and Deploy / lint-frontend (push) Successful in 22s
Build and Deploy / build-frontend (push) Failing after 3s
Build and Deploy / deploy (push) Skipped

This commit is contained in:
Ivan Rezchikov
2026-09-15 20:37:18 +03:00
parent db97576fc5
commit 2a85485de4
+8 -19
View File
@@ -25,30 +25,19 @@ jobs:
needs: lint-frontend needs: lint-frontend
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v4 - name: Checkout
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: Build frontend - name: Build frontend
run: bun run build
- name: Login to Docker Registry
run: | 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: | run: |
docker build -t ${{ vars.DOCKER_REGISTRY }}/${{ vars.DOCKER_IMAGE }}:latest . docker push 172.17.0.1:5000/eu:latest
docker push ${{ vars.DOCKER_REGISTRY }}/${{ vars.DOCKER_IMAGE }}:latest
deploy: deploy:
needs: build-frontend needs: build-frontend