Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 17 additions & 1 deletion .github/workflows/manually-trigger-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,29 @@ on:
type: choice
options:
- production
default: production
- staging
default: staging

permissions:
id-token: write
contents: read

jobs:
trigger-staging-deploy:
runs-on: ubuntu-latest
environment: production-fidl # only one environment available, using for both: staging and production
if: ${{ inputs.version != '' && inputs.environment == 'staging' }}
steps:
- name: Trigger staging deploy
uses: neti-filplus-infra/filplus-deploy-action@main
with:
version: ${{ inputs.version }}
environment: staging
ecr-repository: provider-sample-url-finder
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID_IMAGE_DEPLOYER }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY_IMAGE_DEPLOYER }}
aws-region: us-east-1

trigger-production-deploy:
runs-on: ubuntu-latest
environment: production-fidl
Expand Down
14 changes: 7 additions & 7 deletions .github/workflows/publish-new-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ on:
description: "Enter the version number"
required: true
default: "latest"
deploy-to-production:
description: "Deploy the new version?"
deploy-to-staging:
description: "Deploy the new version on staging?"
required: false
type: boolean
default: false
Expand Down Expand Up @@ -95,20 +95,20 @@ jobs:
git tag $TAG_NAME
git push origin $TAG_NAME

trigger-production-deploy:
trigger-staging-deploy:
runs-on: ubuntu-latest
needs:
- code-check
- bump-version
- build-and-publish
if: ${{ github.ref_name == 'main' && inputs.version != '' && inputs.deploy-to-production == true }}
environment: production-fidl
if: ${{ inputs.version != '' && inputs.deploy-to-staging == true }}
environment: production-fidl # only one environment available, using for both: staging and production
steps:
- name: Trigger production deploy
- name: Trigger staging deploy
uses: neti-filplus-infra/filplus-deploy-action@main
with:
version: ${{ inputs.version }}
environment: production
environment: staging
ecr-repository: provider-sample-url-finder
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID_IMAGE_DEPLOYER }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY_IMAGE_DEPLOYER }}
Expand Down