CI-deploy-main-to-aws-development #31
This file contains hidden or 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: 'CI-deploy-main-to-aws-development' | |
on: | |
workflow_dispatch: | |
repository_dispatch: | |
types: do-deploy-main-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: 'http-web-development' | |
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.sh |