Skip to content

CI-deploy-main-beta-to-aws-development #3

CI-deploy-main-beta-to-aws-development

CI-deploy-main-beta-to-aws-development #3

name: 'CI-deploy-main-beta-to-aws-development'
on:
workflow_dispatch:
repository_dispatch:
types: do-deploy-main-beta-to-aws-development
jobs:
main-build:
runs-on: ubuntu-latest
timeout-minutes: 30 # default 360
steps:
- uses: actions/checkout@v1
with:
ref: 'main'
- name: Install Node 14
uses: actions/setup-node@v1
with:
node-version: '14'
- name: 'Install dependencies'
run: |
./ci-install-dependencies.sh
- name: 'CI Build Command'
timeout-minutes: 20
run: |
./ci-build.sh
- name: 'CI Cypress Report Command'
if: ${{ always() }}
run: |
./ci-cypress-report.sh
- name: Archive jest test results
uses: actions/upload-artifact@v4
if: ${{ always() }}
with:
name: jest-stare
path: jest-stare
- name: Archive cypress test results
uses: actions/upload-artifact@v4
if: ${{ always() }}
with:
name: cypress-report
path: cypress-report/report
- name: 'CI Push to s3 Command'
timeout-minutes: 20
env:
NEXT_PUBLIC_CUSTOMER_API_BASE_URL: 'https://docker-http-app-development.harishkannarao.com'
BUCKET_NAME: 'beta-http-web-development'
NEXT_BASE_PATH: '/beta'
OUT_DIR: 'prod_artifact/beta'
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
AWS_DEFAULT_REGION: 'eu-west-2'
AWS_DEFAULT_OUTPUT: 'json'
run: |
./ci-push-s3-beta.sh