add manual approval setp

This commit is contained in:
Maidul Islam
2023-01-13 13:09:57 -08:00
parent 189d24589e
commit a00e6df59f
+10 -1
View File
@@ -100,10 +100,19 @@ jobs:
platforms: linux/amd64,linux/arm64 platforms: linux/amd64,linux/arm64
build-args: | build-args: |
POSTHOG_API_KEY=${{ secrets.PUBLIC_POSTHOG_API_KEY }} POSTHOG_API_KEY=${{ secrets.PUBLIC_POSTHOG_API_KEY }}
manualApprove:
needs: [frontend-image, backend-image]
environment:
name: gamma-deployment
runs-on: ubuntu-latest
steps:
- name: manual approve
run: |
echo "Manually approved"
gamma-deployment: gamma-deployment:
name: Deploy to gamma name: Deploy to gamma
runs-on: ubuntu-latest runs-on: ubuntu-latest
needs: [frontend-image, backend-image] needs: [manualApprove]
if: github.event_name == 'repository_dispatch' if: github.event_name == 'repository_dispatch'
steps: steps:
- name: ☁️ Checkout source - name: ☁️ Checkout source