-
Notifications
You must be signed in to change notification settings - Fork 18
38 lines (34 loc) · 1.12 KB
/
ci-dev-pr.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
name: Development - Pull Request
on:
pull_request:
branches:
- '**'
jobs:
lint-format:
name: Linting and Formatting Checks
uses: ./.github/workflows/lint-and-format.yml
build:
needs: lint-format
name: Build
runs-on: ubuntu-latest
environment: Development
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Build Docker container
env:
DATABASE_URL: ${{ secrets.DATABASE_URL }}
REDIS_URI: ${{ secrets.REDIS_URI }}
NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY: ${{ secrets.NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY }}
NEXT_PUBLIC_DRIVE_LINK: ${{ secrets.NEXT_PUBLIC_DRIVE_LINK }}
run: |
docker buildx build \
--secret id=DATABASE_URL \
--secret id=REDIS_URI \
--secret id=NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY \
--secret id=NEXT_PUBLIC_DRIVE_LINK \
--file=Dockerfile -t csclub-website .
docker image save csclub-website | gzip > csclub-website.tar.gz
- name: Print size of csclub-website.tar.gz
run: |
du -sh csclub-website.tar.gz