-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: make workflows for dev and clean up prod workflow
- Loading branch information
1 parent
cdd24e4
commit 8c9cd1e
Showing
4 changed files
with
50 additions
and
52 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
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 . |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
name: Development | ||
on: | ||
push: | ||
branches: | ||
- '**' | ||
- '!main' | ||
|
||
jobs: | ||
lint-format: | ||
name: Linting and Formatting Checks | ||
uses: ./.github/workflows/lint-and-format.yml |
12 changes: 6 additions & 6 deletions
12
.github/workflows/deploy.yml → .github/workflows/production.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters