added highlight_io to requirements.txt #65
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
name: Development to Staging to Production Pipeline | |
on: | |
push: | |
branches: | |
- main | |
workflow_dispatch: | |
inputs: | |
environment: | |
description: "Deployment Environment" | |
required: true | |
default: "dev" | |
jobs: | |
build-and-deploy: | |
runs-on: ubuntu-latest | |
environment: CI/CD | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: Set up Node.js | |
uses: actions/setup-node@v2 | |
with: | |
node-version: "20" | |
- name: Install dependencies | |
run: npm install --legacy-peer-deps | |
working-directory: ./peerplatform/peerplatform-fe | |
- name: Print Current Directory | |
run: pwd | |
- name: Docker Login | |
run: echo $DOCKER_PASSWORD | docker login -u $DOCKER_USERNAME --password-stdin | |
env: | |
DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }} | |
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }} | |
if: github.ref == 'refs/heads/main' || github.event_name == 'workflow_dispatch' | |
- name: Build and Deploy to Development | |
if: github.ref == 'refs/heads/main' && github.event_name != 'workflow_dispatch' | |
run: node ./peerplatform/peerplatform-fe/build.mjs | |
env: | |
ENVIRONMENT: "dev" | |
DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }} | |
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }} | |
- name: Build and Deploy to Staging | |
if: github.event_name == 'workflow_dispatch' && github.event.inputs.environment == 'staging' | |
run: node ./peerplatform/peerplatform-fe/build.mjs | |
env: | |
ENVIRONMENT: "staging" | |
DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }} | |
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }} | |
- name: Build and Deploy to Production | |
if: github.event_name == 'workflow_dispatch' && github.event.inputs.environment == 'production' | |
run: node ./peerplatform/peerplatform-fe/build.mjs | |
env: | |
ENVIRONMENT: "production" | |
DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }} | |
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }} |