From 00298676e75bdf9b71ab917767f8e224b27caf88 Mon Sep 17 00:00:00 2001 From: Veivel Pattiwael <25278964+Veivel@users.noreply.github.com> Date: Wed, 19 Jun 2024 00:32:43 +0700 Subject: [PATCH] ci: implement prod deployment using RISTEK's standard workflow (#34) * chore: fix deployment docker compose, update scripts, merge env * sync * feat: workflow for prod --- .env.example | 2 +- .github/workflows/deploy-prod.yaml | 20 ++++++++++++++++++++ 2 files changed, 21 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/deploy-prod.yaml diff --git a/.env.example b/.env.example index 2b2d861..7eb794c 100644 --- a/.env.example +++ b/.env.example @@ -16,4 +16,4 @@ MONGODB_USERNAME=user MONGODB_PASSWORD=[MongoDB password] # sentry -SENTRY_DSN=[https://sentry.io/xxxx] \ No newline at end of file +SENTRY_DSN=[https://sentry.io/xxxx] diff --git a/.github/workflows/deploy-prod.yaml b/.github/workflows/deploy-prod.yaml new file mode 100644 index 0000000..f8f3bb5 --- /dev/null +++ b/.github/workflows/deploy-prod.yaml @@ -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 }} +