Skip to content

Commit 748b93b

Browse files
committed
Fix 5
1 parent 6107bde commit 748b93b

File tree

1 file changed

+0
-45
lines changed

1 file changed

+0
-45
lines changed

.github/workflows/ci.yml

Lines changed: 0 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,6 @@ on:
44
pull_request:
55
branches: [ main ]
66

7-
env:
8-
# Default image name (override by setting the secret IMAGE_NAME to e.g. 'username/repo')
9-
IMAGE: ${{ secrets.IMAGE_NAME || github.repository }}
10-
117
jobs:
128
lint:
139
name: lint + pre-commit
@@ -66,22 +62,6 @@ jobs:
6662
- name: Prisma generate (produce client binaries)
6763
run: npx prisma generate
6864

69-
build:
70-
name: build image
71-
runs-on: ubuntu-latest
72-
needs: generate
73-
steps:
74-
- name: Checkout
75-
uses: actions/checkout@v4
76-
77-
- name: Build image (local cache, do not push)
78-
uses: docker/build-push-action@v4
79-
with:
80-
context: .
81-
file: ./Dockerfile
82-
push: false
83-
tags: ${{ env.IMAGE }}:${{ github.sha }}
84-
8565
migrate:
8666
name: "optional: prisma migrate deploy"
8767
runs-on: ubuntu-latest
@@ -112,31 +92,6 @@ jobs:
11292
- name: Prisma migrate deploy
11393
run: npx prisma migrate deploy
11494

115-
push:
116-
name: "optional: docker push"
117-
runs-on: ubuntu-latest
118-
needs: build
119-
if: ${{ secrets.DOCKERHUB_USERNAME && secrets.DOCKERHUB_TOKEN }}
120-
steps:
121-
- name: Checkout
122-
uses: actions/checkout@v4
123-
124-
- name: Login to Docker registry
125-
uses: docker/login-action@v2
126-
with:
127-
username: ${{ secrets.DOCKERHUB_USERNAME }}
128-
password: ${{ secrets.DOCKERHUB_TOKEN }}
129-
130-
- name: Push image
131-
uses: docker/build-push-action@v4
132-
with:
133-
context: .
134-
file: ./Dockerfile
135-
push: true
136-
tags: |
137-
${{ env.IMAGE }}:${{ github.sha }}
138-
${{ env.IMAGE }}:latest
139-
14095
done-notify:
14196
name: done
14297
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)