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

Roll back to v2.83.0 #2619

Closed
wants to merge 1 commit into from
Closed
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
10 changes: 5 additions & 5 deletions .github/actions/build-function/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ description: 'Build a generic function usin yarn build and archiving the results

inputs:
app_name:
description: "function folder"
description: 'function folder'
required: true
artifact_name:
description: artifact name to upload
Expand Down Expand Up @@ -34,12 +34,12 @@ runs:
working-directory: ${{ inputs.app_name }}
shell: sh
# env:
# NODE_ENV: production
# NODE_ENV: production
# run: ${{ inputs.build_cmd }}
run: yarn build

- uses: actions/upload-artifact@0b7f8abb1508181956e8e162db84b466c27e18ce #@3.1.2
with:
- uses: actions/upload-artifact@65c4c4a1ddee5b72f698fdd19549f0f0fb45cf08 #@4.6.0
with:
name: ${{ inputs.artifact_name || inputs.app_name }}
path: ./${{ inputs.app_name }}/dist
if-no-files-found: error
if-no-files-found: error
2 changes: 1 addition & 1 deletion .github/actions/deploy-gcs/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ runs:
steps:
- name: download webpack
id: download
uses: actions/download-artifact@9bc31d5ccc31df68ecc42ccf4149144866c47d8a # @v3.0.2
uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # @v4.1.8
with:
name: ${{ inputs.artifact_name }}
path: webpack
Expand Down
2 changes: 1 addition & 1 deletion .github/actions/deploy-gfunction/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ runs:

- name: retrieve artifacts
id: download
uses: actions/download-artifact@9bc31d5ccc31df68ecc42ccf4149144866c47d8a # @v3.0.2
uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # @v4.1.8
with:
name: ${{ inputs.artifact_name || inputs.app_name }}
# This will work only if we're matching the same string as
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/centrifuge-app.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ jobs:
cat .env-config/.env.${{ steps.prepare.outputs.env_name }}
yarn build:app --mode ${{ steps.prepare.outputs.env_name }}

- uses: actions/upload-artifact@0b7f8abb1508181956e8e162db84b466c27e18ce #@3.1.2
- uses: actions/upload-artifact@65c4c4a1ddee5b72f698fdd19549f0f0fb45cf08 #@4.6.0
with:
name: ${{ env.artifact_name }}
path: ./centrifuge-app/build
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/fabric.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ jobs:

- name: Archive storybook artifacts
# if: github.ref === 'refs/heads/main'
uses: actions/upload-artifact@0b7f8abb1508181956e8e162db84b466c27e18ce # @v3.1.2
uses: actions/upload-artifact@65c4c4a1ddee5b72f698fdd19549f0f0fb45cf08 # @v4.6.0
with:
name: fabric-storybook
retention-days: 1
Expand Down
46 changes: 23 additions & 23 deletions .github/workflows/prod-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Promote staging to PROD
on:
release:
types:
- released
- released
workflow_dispatch:
concurrency:
group: production-deployment
Expand All @@ -12,14 +12,14 @@ jobs:
sync-staging-prod:
permissions:
contents: 'read'
id-token: 'write'
id-token: 'write'
runs-on: ubuntu-latest
environment: production
steps:
- name: Checkout
uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3.3.0
with:
path: apps
path: apps

- name: prepare env logic
id: prepare
Expand All @@ -36,23 +36,23 @@ jobs:
service_account: '${{ secrets.GSA }}'

- name: 'Set up Cloud SDK'
uses: google-github-actions/setup-gcloud@62d4898025f6041e16b1068643bfc5a696863587 # @v1
uses: google-github-actions/setup-gcloud@62d4898025f6041e16b1068643bfc5a696863587 # @v1

- name: Sync webpack from staging
run: gsutil -m rsync -d -r gs://app.staging.centrifuge.io gs://${{ steps.prepare.outputs.front_url }}

retrieve-prod-assets:
runs-on: ubuntu-latest
steps:
steps:
- name: Download artifact
id: download-artifact
uses: dawidd6/action-download-artifact@v2
with:
workflow: staging-deploy.yml
workflow_conclusion: "" # This will fail if the staging deployment isn't finished yet
workflow_conclusion: '' # This will fail if the staging deployment isn't finished yet
# check_artifacts: true # This will search for the last available artifact, useful for testing

# Alternative: download from the release instead of
# Alternative: download from the release instead of
# workflow artifacts
# - uses: dsaltares/fetch-gh-release-asset@master
# with:
Expand All @@ -77,17 +77,17 @@ jobs:
# echo "Workspace PATH: ${{ github.workspace }}"
# ls -la $GITHUB_WORKSPACE

- uses: actions/upload-artifact@0b7f8abb1508181956e8e162db84b466c27e18ce #@3.1.2
with:
- uses: actions/upload-artifact@65c4c4a1ddee5b72f698fdd19549f0f0fb45cf08 #@4.6.0
with:
name: onboarding-api
path: ${{ github.workspace }}/onboarding-api-staging/
if-no-files-found: error
- uses: actions/upload-artifact@0b7f8abb1508181956e8e162db84b466c27e18ce #@3.1.2
with:
if-no-files-found: error

- uses: actions/upload-artifact@65c4c4a1ddee5b72f698fdd19549f0f0fb45cf08 #@4.6.0
with:
name: pinning-api
path: ${{ github.workspace }}/pinning-api-staging/
if-no-files-found: error
if-no-files-found: error

pinning-prod-deploy:
needs: retrieve-prod-assets
Expand All @@ -103,7 +103,7 @@ jobs:
- name: Checkout
uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3.3.0
with:
path: apps
path: apps

- name: Deploy Gfunction
id: functionsdeploy
Expand All @@ -114,7 +114,7 @@ jobs:
GSA: ${{ secrets.GSA }}
target: ${{ env.function_handler }}
gcloud_region: ${{ vars.GCLOUD_REGION }}
service_account: "${{ vars.PINNING_API_FUNCT_SA }}"
service_account: '${{ vars.PINNING_API_FUNCT_SA }}'
deploy_env: production

onboarding-prod-deploy:
Expand All @@ -131,7 +131,7 @@ jobs:
- name: Checkout
uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3.3.0
with:
path: apps
path: apps

- name: Deploy Gfunction
id: functionsdeploy
Expand All @@ -141,7 +141,7 @@ jobs:
GWIP: ${{ secrets.GWIP }}
GSA: ${{ secrets.GSA }}
target: ${{ env.function_handler }}
service_account: "${{ vars.ONBOARDING_FUNCT_SA }}"
service_account: '${{ vars.ONBOARDING_FUNCT_SA }}'
gcloud_region: ${{ vars.GCLOUD_REGION }}
deploy_env: production

Expand All @@ -156,7 +156,7 @@ jobs:
SLACK_MESSAGE: |
app.staging.centrifuge.io has been promoted to app.centrifuge.io and is now LIVE!
Check out the new release -> https://github.com/centrifuge/apps/releases/
SLACK_USERNAME: "Centrifuge GHA Bot"
SLACK_ICON: "https://centrifuge.io/favicon.ico"
SLACK_TITLE: "Centrifuge app has been promoted to prod."
SLACK_FOOTER: "Automatic message from centrifuge/apps repository Actions"
SLACK_USERNAME: 'Centrifuge GHA Bot'
SLACK_ICON: 'https://centrifuge.io/favicon.ico'
SLACK_TITLE: 'Centrifuge app has been promoted to prod.'
SLACK_FOOTER: 'Automatic message from centrifuge/apps repository Actions'
Loading