Skip to content

Commit

Permalink
ci: implement prod deployment using RISTEK's standard workflow (#34)
Browse files Browse the repository at this point in the history
* chore: fix deployment docker compose, update scripts, merge env

* sync

* feat: workflow for prod
  • Loading branch information
Veivel authored Jun 18, 2024
1 parent a5cef35 commit 0029867
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@ MONGODB_USERNAME=user
MONGODB_PASSWORD=[MongoDB password]

# sentry
SENTRY_DSN=[https://sentry.io/xxxx]
SENTRY_DSN=[https://sentry.io/xxxx]
20 changes: 20 additions & 0 deletions .github/workflows/deploy-prod.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Deploy (Production)

on:
workflow_dispatch:

jobs:
deploy_service:
name: Deploy Service
uses: RistekCSUI/infra-workflows/.github/workflows/dockerhub-service-build.yml@main
with:
SERVICES: susunjadwal/susunjadwal-backend-prod
INSTANCE: Barato
IMAGE: susunjadwal-backend
DOCKERHUB_USER: ristekoss
PLATFORMS: linux/amd64
IMAGE_TAG: stable
secrets:
GH_TOKEN: ${{ secrets.CENTRAL_INFRA_GH_TOKEN }}
DOCKERHUB_TOKEN: ${{ secrets.DOCKERHUB_TOKEN }}

0 comments on commit 0029867

Please sign in to comment.