-
Notifications
You must be signed in to change notification settings - Fork 0
feat: migrate to pnpm, enhance Docker and deployment workflows, and improve clipboard OTP UX #362
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Changes from 20 commits
Commits
Show all changes
23 commits
Select commit
Hold shift + click to select a range
38465f3
chore: migrate project to pnpm and update dependencies
mrbadri f66038d
refactor: update docker-compose configuration for core-client service
mrbadri a5502ca
feat: add docker-compose configuration for core-client service
mrbadri a56d9a0
feat: add environment variables to Dockerfile for base URL configurat…
mrbadri 18fba39
fix: update base URL in coreApi and guestApi to a hardcoded value
mrbadri 42fb53a
feat: enhance authentication components with clipboard OTP functionality
mrbadri 4f355a4
feat: add clipboard permission request functionality to useClipboardO…
mrbadri 724450c
feat: implement clipboard permission listener in useClipboardOtp hook
mrbadri 33292f7
feat: add deploy action
mrbadri dbde556
feat: add production docker-compose configuration for core-client ser…
mrbadri 75388c3
refactor: update docker-compose configuration for client service
mrbadri c44ef34
chore: enhance Docker Hub deployment process in workflow
mrbadri 84d2f80
chore: clean up Docker deployment workflow
mrbadri ce1f8b6
fix: update Docker deployment workflow to pull client service
mrbadri 8253870
chore: remove commented-out Docker build and push steps from deployme…
mrbadri 40fa684
chore: add concurrency configuration to deployment workflow
mrbadri 6e06020
chore: update deployment workflow to use self-hosted runners
mrbadri e38ce6f
chore: expose port for core service in production Docker Compose
mrbadri 10046db
fix: update API base URLs from HTTPS to HTTP
mrbadri 1a21f6c
refactor: simplify post-login schema transformation and update docker…
mrbadri 1ecb3c2
feat: add development and preview Docker Compose configurations
mrbadri 47b4846
refactor: update PR comment actions in deployment workflow
mrbadri 4ee4a08
chore: update permissions in deployment workflow
mrbadri File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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,52 @@ | ||
| name: CI/CD Pipeline | ||
|
|
||
| on: | ||
| push: | ||
| branches: | ||
| - main | ||
| pull_request: | ||
|
|
||
| concurrency: | ||
| group: "CI-${{ github.ref_name }}" | ||
| cancel-in-progress: false | ||
|
|
||
| jobs: | ||
| build: | ||
| runs-on: [self-hosted, core] | ||
| steps: | ||
| - name: Checkout Repository | ||
| uses: actions/checkout@v4 | ||
|
|
||
| - name: Create .env file | ||
| run: | | ||
| echo "NEXT_PUBLIC_BASE_URL=${{ secrets.NEXT_PUBLIC_BASE_URL }}" >> .env | ||
| echo "NEXT_PUBLIC_BASE_URL_ATTACHMENT=${{ secrets.NEXT_PUBLIC_BASE_URL_ATTACHMENT }}" >> .env | ||
|
|
||
| - name: Login to Docker Hub | ||
| run: docker login -u mrbadri -p ${{ secrets.DOCKER_TOKEN }} | ||
|
|
||
| - name: Build Docker Image using Docker Compose | ||
| run: docker compose -f docker-compose.prod.yml build | ||
|
|
||
| - name: Push Docker Image to Docker Hub | ||
| run: docker push mrbadri/pixel-client:latest | ||
|
|
||
| deploy: | ||
| runs-on: [self-hosted, core] | ||
| needs: build | ||
| steps: | ||
| - name: Checkout Repository | ||
| uses: actions/checkout@v4 | ||
|
|
||
| - name: Create .env file | ||
| run: | | ||
| echo "NEXT_PUBLIC_BASE_URL=${{ secrets.NEXT_PUBLIC_BASE_URL }}" >> .env | ||
| echo "NEXT_PUBLIC_BASE_URL_ATTACHMENT=${{ secrets.NEXT_PUBLIC_BASE_URL_ATTACHMENT }}" >> .env | ||
|
|
||
| - name: Deploy using Docker Compose | ||
| run: | | ||
| docker compose -f docker-compose.prod.yml pull client | ||
| docker compose -f docker-compose.prod.yml down || true | ||
| docker compose -f docker-compose.prod.yml up -d | ||
|
|
||
| # if container is not running, rullback to the previous version | ||
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.