Skip to content

Commit

Permalink
Revert "make it possible to deploy production with current infrastruc…
Browse files Browse the repository at this point in the history
…ture"

This reverts commit 36edf30.
  • Loading branch information
rikukissa committed Jan 4, 2024
1 parent 36edf30 commit 3af12d8
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions .github/workflows/deploy-prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,6 @@ on:
countryconfig-image-tag:
description: Your Country Config DockerHub image tag
required: true
use-latest-infrastructure:
description: Deploy with latest infrastructure code
required: true
default: false
type: boolean

jobs:
deploy:
Expand All @@ -35,25 +30,22 @@ jobs:
secret: ${{ github.TOKEN }}
approvers: euanmillar,rikukissa
minimum-approvals: 1
issue-title: 'Deploy (Prod): core: ${{ github.event.inputs.core-image-tag }} country config: ${{ github.event.inputs.countryconfig-image-tag }}'
issue-body: 'Please approve or deny the deployment of core: ${{ github.event.inputs.core-image-tag }} country config: ${{ github.event.inputs.countryconfig-image-tag }} to production'
issue-title: "Deploy (Prod): core: ${{ github.event.inputs.core-image-tag }} country config: ${{ github.event.inputs.countryconfig-image-tag }}"
issue-body: "Please approve or deny the deployment of core: ${{ github.event.inputs.core-image-tag }} country config: ${{ github.event.inputs.countryconfig-image-tag }} to production"
exclude-workflow-initiator-as-approver: false

- name: Clone core
uses: actions/checkout@v3
with:
fetch-depth: 0
repository: 'opencrvs/opencrvs-core'
path: './opencrvs-core'

- name: Clone country config resource package
uses: actions/checkout@v3
with:
fetch-depth: 0
path: './${{ github.event.repository.name }}'

- name: Checkout country branch
if: github.event.inputs.use-latest-infrastructure == 'false'
run: |
cd ${{ github.event.repository.name }}
git checkout ${{ github.event.inputs.countryconfig-image-tag }}
Expand Down

0 comments on commit 3af12d8

Please sign in to comment.