Merge pull request #135 from aplijobs/fix/dockerfile/alpine-vips #119
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: Deploy Staging | |
on: | |
push: | |
branches: | |
- develop | |
workflow_dispatch: | |
jobs: | |
build-and-push: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- name: Build and publish Docker image into AWS ECR for Birdwoot | |
uses: ./.github/actions/deployment/push-image-ecr | |
with: | |
BRANCH: develop | |
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID_STAGING }} | |
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY_STAGING }} | |
ECR_REGISTRY: 823532849758.dkr.ecr.us-east-1.amazonaws.com | |
ECR_REPOSITORY: conversations/birdwoot/staging/birdwootmain | |
DOCKERFILE_PATH: docker/Dockerfile | |
SSM_VUE_APP_VERSION: /conversations/birdwoot/staging/taskdefinition/environment/vue-app-version | |
- name: Build and publish Docker image into AWS ECR for Sidekiq | |
uses: ./.github/actions/deployment/push-image-ecr | |
with: | |
BRANCH: develop | |
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID_STAGING }} | |
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY_STAGING }} | |
ECR_REGISTRY: 823532849758.dkr.ecr.us-east-1.amazonaws.com | |
ECR_REPOSITORY: conversations/birdwoot/staging/sidekiq | |
DOCKERFILE_PATH: docker/Dockerfile | |
# Send status notification | |
- name: Build Slack notification payload | |
id: slack-payload | |
if: ${{ always() }} | |
env: | |
BRANCH_NAME: ${{ github.ref_name }} | |
JOB_STATUS: ${{ job.status }} | |
GITHUB_REPOSITORY: ${{ github.repository }} | |
GITHUB_RUN_ID: ${{ github.run_id }} | |
run: ./scripts/build_slack_deployment_status_notification_payload.sh | |
- name: Notify status to slack | |
if: ${{ always() }} | |
uses: slackapi/[email protected] | |
with: | |
payload: ${{ steps.slack-payload.outputs.payload }} | |
env: | |
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} | |