This repository has been archived by the owner on Apr 18, 2024. It is now read-only.
Bump browserify-sign from 4.0.4 to 4.2.2 #31
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: Continuous Deployment | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
types: [labeled] | |
jobs: | |
staging_deploy: | |
if: (github.event_name != 'pull_request') || (github.event_name == 'pull_request' && github.event.action == 'labeled' && github.event.label.name == 'deploy') | |
runs-on: ubuntu-latest | |
environment: Staging | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: satackey/action-docker-layer-caching@v0.0.11 | |
continue-on-error: true | |
- name: push to dockerhub | |
uses: fylein/docker-release-action@master | |
env: | |
DOCKERHUB_USERNAME: ${{ secrets.DOCKERHUB_USERNAME }} | |
DOCKERHUB_PASSWORD: ${{ secrets.DOCKERHUB_PASSWORD }} | |
IMAGE_NAME: fyle_xero-app | |
- name: Deploy to Staging | |
uses: fylein/aws-eks-deploy-action@master | |
env: | |
EKS_CLUSTER_NAME: ${{ secrets.EKS_CLUSTER_NAME }} | |
AWS_REGION: ${{ secrets.AWS_REGION }} | |
LOCAL_HOST: ${{ secrets.LOCAL_HOST }} | |
LOCAL_PORT: ${{ secrets.LOCAL_PORT }} | |
REMOTE_PORT: ${{ secrets.REMOTE_PORT }} | |
EKS_KUBECTL_ROLE: ${{ secrets.EKS_KUBECTL_ROLE }} | |
ROLE_SESSION_NAME: ${{ secrets.ROLE_SESSION_NAME }} | |
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} | |
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} | |
DOCKERHUB_USERNAME: ${{ secrets.DOCKERHUB_USERNAME }} | |
KUBERNETES_MANIFEST_FILE_PATH: deployment/staging/controller.yml | |
- name: Slack Notification | |
uses: rtCamp/action-slack-notify@v2 | |
env: | |
SLACK_COLOR: ${{ job.status }} | |
SLACK_MESSAGE: Staging Deploy Status - ${{ job.status }} | |
SLACK_TITLE: Deploy Xero APP to Staging | |
SLACK_ICON_EMOJI: ":pepeok:" | |
SLACK_USERNAME: NSAPI | |
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK_URL }} | |
SLACK_FOOTER: '' |