Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BEL-4757 Add new workflows for interactives #227

Merged
merged 1 commit into from
Jan 15, 2025
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
28 changes: 28 additions & 0 deletions .github/workflows/dev_upload_interactives.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Dev Deploy

on:
workflow_call:

jobs:
deploy:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

- name: Pulling Repo Name to use as subfolder
run: |
echo "REPONAME=$(echo $GITHUB_REPOSITORY | cut -d/ -f2)" >> $GITHUB_ENV

- name: Remove Unneeded Files
run: |
rm -r .github/ .git/

- name: Upload to blob storage
uses: azure/CLI@v1
with:
azcliversion: 2.67.0
# azcopy workadound https://github.com/Azure/azure-cli/issues/30635
inlineScript: |
tdnf install -y azcopy;
az storage blob upload-batch --source ./ --destination "\$web/${{ env.REPONAME }}/" --connection-string '${{ secrets.INTERACTIVE_CONNECTION_STRING_DEV }}'
38 changes: 38 additions & 0 deletions .github/workflows/prod_upload_interactives.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: Prod Deploy

on:
workflow_call:

jobs:
deploy:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

- name: Pulling Repo Name to use as subfolder
run: |
echo "REPONAME=$(echo $GITHUB_REPOSITORY | cut -d/ -f2)" >> $GITHUB_ENV

- name: Remove Unneeded Files
run: |
rm -r .github/ .git/

- name: Upload to blob storage
uses: azure/CLI@v1
with:
azcliversion: 2.67.0
# azcopy workadound https://github.com/Azure/azure-cli/issues/30635
inlineScript: |
tdnf install -y azcopy;
az storage blob upload-batch --source ./ --destination "\$web/${{ env.REPONAME }}/" --connection-string '${{ secrets.INTERACTIVE_CONNECTION_STRING_PROD }}'


notify_deployment:
name: Notify Deployment
needs: deploy
uses:
strongmind/public-reusable-workflows/.github/workflows/send-deployment-notification.yml@main
with:
repository_name: ${{ github.repository }}
secrets: inherit
Loading