-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2219 from vrk-kpa/add_restart_services_workflows
Add restart services workflows and necessary modifications
- Loading branch information
Showing
5 changed files
with
70 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
name: Restart beta containers | ||
|
||
on: | ||
workflow_dispatch: | ||
|
||
jobs: | ||
restart-dev: | ||
name: restart beta containers | ||
runs-on: ubuntu-latest | ||
permissions: | ||
id-token: write | ||
strategy: | ||
matrix: | ||
container: ["ckan", "ckanCron", "drupal"] | ||
steps: | ||
- name: configure AWS credentials | ||
uses: aws-actions/configure-aws-credentials@v4.0.1 | ||
with: | ||
role-to-assume: ${{ secrets.AWS_BETA_DEPLOY_ROLE }} | ||
role-session-name: github-actions | ||
aws-region: eu-north-1 | ||
|
||
- name: Restart containers | ||
run: | | ||
aws ecs update-service --cluster ${{ secrets.beta_cluster }} --service ${{ matrix.container }} --force-new-deployment |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
name: Restart Prod containers | ||
|
||
on: | ||
workflow_dispatch: | ||
|
||
jobs: | ||
restart-prod: | ||
name: restart prod containers | ||
runs-on: ubuntu-latest | ||
environment: prod | ||
permissions: | ||
id-token: write | ||
strategy: | ||
matrix: | ||
container: ["ckan", "ckanCron", "drupal"] | ||
steps: | ||
- name: configure AWS credentials | ||
uses: aws-actions/configure-aws-credentials@v4.0.1 | ||
with: | ||
role-to-assume: ${{ secrets.AWS_ROLE }} | ||
role-session-name: github-actions | ||
aws-region: eu-north-1 | ||
|
||
- name: Restart containers | ||
run: | | ||
aws ecs update-service --cluster ${{ secrets.prod_cluster }} --service ${{ matrix.container }} --force-new-deployment |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters