[CD] Update admin-portal with this commit https://github.com/fiaisis/… #472
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
name: Create Staging to Production pull request | |
on: | |
push: | |
branches: | |
- main | |
env: | |
SERVICES_TO_UPDATE: data-viewer fia-api file-watcher-operator frontend jobcreator plotting-service rundetection scigateway | |
jobs: | |
make_pr_for_prod: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write | |
pull-requests: write | |
steps: | |
- name: Check out code | |
uses: actions/checkout@v4 | |
- name: Copy staging to prod for our microservices | |
run: | | |
Services=$SERVICES_TO_UPDATE | |
for Service in ${Services[*]} | |
do | |
cp -rf ./components/$Service/envs/staging/$Service.yml ./components/$Service/envs/production/$Service.yml | |
done | |
- name: Create Pull Request with changes | |
uses: peter-evans/[email protected] | |
with: | |
commit-message: Update prod with staging | |
committer: GitHub Action <[email protected]> | |
branch: staging_to_prod | |
title: "[Automatic] Update prod from staging" | |
body: "This is the automated PR made to perform the changes required to update production with changes made on staging. It will update the microservices we have made not the infrastructure that staging and prod are independently dependent on." |