This repository has been archived by the owner on Sep 20, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
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 #17 from ror-community/staging
Merge staging to prod
- Loading branch information
Showing
21 changed files
with
429 additions
and
314 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 |
---|---|---|
@@ -1 +1,2 @@ | ||
VUE_APP_GENERATE_ID="http://localhost:5000/generateid" | ||
VUE_APP_GENERATE_ID="https://generateid.dev.ror.org/generateid" | ||
VUE_APP_GEONAMES_URL="https://generateid.dev.ror.org/address" |
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,45 @@ | ||
name: Deploy Dev | ||
on: | ||
push: | ||
branches: | ||
- "dev" | ||
paths-ignore: | ||
- '**/README.md' | ||
- '**/workflows/**' | ||
jobs: | ||
run: | ||
runs-on: ubuntu-latest | ||
env: | ||
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} | ||
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} | ||
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Install | ||
run: npm ci | ||
- name: Build | ||
run: | | ||
cp src/env.dev.ts src/env.ts; | ||
npm run build | ||
- name: Deploy | ||
uses: reggionick/[email protected] | ||
with: | ||
folder: dist | ||
bucket: ${{ secrets.S3_BUCKET_CURATORFORM_DEV}} | ||
bucket-region: ${{ secrets.S3_BUCKET_REGION }} | ||
dist-id: ${{ secrets.CLOUDFRONT_DISTRIBUTION_ID_CURATORFORM_DEV }} | ||
invalidation: /* | ||
delete-removed: true | ||
- name: Notify Slack | ||
if: always() | ||
uses: edge/simple-slack-notify@master | ||
with: | ||
channel: "#deployment-updates" | ||
color: 'good' | ||
text: "A new version of the <https://leo.dev.ror.org|LEO FORM> is deployed to dev." | ||
failure_text: '${env.GITHUB_WORKFLOW} (${env.GITHUB_RUN_NUMBER}) build failed' | ||
fields: | | ||
[{ "title": "Committed by", "value": "<https://github.com/ror-community/leo-form/commits?author=${{ github.actor }}|${{ github.actor }}>", "short": true }, | ||
{ "title": "Commit SHA", "value": "<https://github.com/ror-community/leo-form/commit/${{ steps.extract_variables.outputs.GIT_SHA }}|${{ steps.extract_variables.outputs.GIT_SHA_SHORT }}>", "short": true }, | ||
{ "title": "Repository", "value": "<https://github.com/${{ github.repository }}|${{ github.repository }}>", "short": true }, | ||
{ "title": "Branch", "value": "<https://github.com/ror-community/leo-form/tree/${{ steps.extract_variables.outputs.BRANCH }}|${{ steps.extract_variables.outputs.BRANCH }}>", "short": true }] |
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,42 @@ | ||
name: Release | ||
on: | ||
release: | ||
types: [published] | ||
jobs: | ||
run: | ||
runs-on: ubuntu-latest | ||
env: | ||
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} | ||
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} | ||
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Install | ||
run: npm ci | ||
- name: Build | ||
run: | | ||
cp src/env.prod.ts src/env.ts; | ||
npm run build | ||
- name: Deploy | ||
uses: reggionick/[email protected] | ||
with: | ||
folder: dist | ||
bucket: ${{ secrets.S3_BUCKET_CURATORFORM_PROD}} | ||
bucket-region: ${{ secrets.S3_BUCKET_REGION }} | ||
dist-id: ${{ secrets.CLOUDFRONT_DISTRIBUTION_ID_CURATORFORM_PROD }} | ||
invalidation: /* | ||
delete-removed: true | ||
- name: Notify Slack | ||
if: always() | ||
uses: edge/simple-slack-notify@master | ||
with: | ||
channel: "#deployment-updates" | ||
color: 'good' | ||
text: "A new version of the <https://leo.ror.org|LEO FORM> is deployed to production." | ||
failure_text: '${env.GITHUB_WORKFLOW} (${env.GITHUB_RUN_NUMBER}) build failed' | ||
fields: | | ||
[{ "title": "Commit message", "value": "${{ steps.extract_variables.outputs.MESSAGE }}" }, | ||
{ "title": "Committed by", "value": "<https://github.com/${{ github.repository }}/commits?author=${{ github.actor }}|${{ github.actor }}>", "short": true }, | ||
{ "title": "Commit SHA", "value": "<https://github.com/${{ github.repository }}/commit/${{ steps.extract_variables.outputs.GIT_SHA }}|${{ steps.extract_variables.outputs.GIT_SHA_SHORT }}>", "short": true }, | ||
{ "title": "Repository", "value": "<https://github.com/${{ github.repository }}|${{ github.repository }}>", "short": true }, | ||
{ "title": "Branch", "value": "<https://github.com/${{ github.repository }}/tree/${{ steps.extract_variables.outputs.BRANCH }}|${{ steps.extract_variables.outputs.BRANCH }}>", "short": true }] |
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,46 @@ | ||
name: Deploy Staging | ||
on: | ||
push: | ||
branches: | ||
- "staging" | ||
paths-ignore: | ||
- '**/README.md' | ||
- '**/workflows/**' | ||
jobs: | ||
run: | ||
runs-on: ubuntu-latest | ||
env: | ||
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} | ||
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} | ||
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Install | ||
run: npm ci | ||
- name: Build | ||
run: | | ||
cp src/env.staging.ts src/env.ts; | ||
npm run build | ||
- name: Deploy | ||
uses: reggionick/[email protected] | ||
with: | ||
folder: dist | ||
bucket: ${{ secrets.S3_BUCKET_CURATORFORM_STAGING}} | ||
bucket-region: ${{ secrets.S3_BUCKET_REGION }} | ||
dist-id: ${{ secrets.CLOUDFRONT_DISTRIBUTION_ID_CURATORFORM_STAGING }} | ||
invalidation: /* | ||
delete-removed: true | ||
- name: Notify Slack | ||
if: always() | ||
uses: edge/simple-slack-notify@master | ||
with: | ||
channel: "#deployment-updates" | ||
color: 'good' | ||
text: "A new version of the <https://leo.staging.ror.org|LEO FORM> is deployed to staging." | ||
failure_text: '${env.GITHUB_WORKFLOW} (${env.GITHUB_RUN_NUMBER}) build failed' | ||
fields: | | ||
[{ "title": "Commit message", "value": "${{ steps.extract_variables.outputs.MESSAGE }}" }, | ||
{ "title": "Committed by", "value": "<https://github.com/${{ github.repository }}/commits?author=${{ github.actor }}|${{ github.actor }}>", "short": true }, | ||
{ "title": "Commit SHA", "value": "<https://github.com/${{ github.repository }}/commit/${{ steps.extract_variables.outputs.GIT_SHA }}|${{ steps.extract_variables.outputs.GIT_SHA_SHORT }}>", "short": true }, | ||
{ "title": "Repository", "value": "<https://github.com/${{ github.repository }}|${{ github.repository }}>", "short": true }, | ||
{ "title": "Branch", "value": "<https://github.com/${{ github.repository }}/tree/${{ steps.extract_variables.outputs.BRANCH }}|${{ steps.extract_variables.outputs.BRANCH }}>", "short": true }] |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -29,4 +29,3 @@ | |
</v-footer> | ||
</v-app> | ||
</template> | ||
|
Oops, something went wrong.