diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 7aabcab..1d6a0f9 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -13,9 +13,9 @@ jobs: env: SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK_URL }} SLACK_CHANNEL: "#cloud-builds" - SLACK_FOOTER: "Powered by :fisker:" - SLACK_USERNAME: fiskerBot - SLACK_ICON: "https://github.com/Fisker-Inc.png?size=32" + SLACK_FOOTER: "" + SLACK_USERNAME: GitHub Actions + SLACK_ICON: "https://github.githubassets.com/images/modules/logos_page/GitHub-Mark.png" TAG: ${{ github.sha }} PROJECT: ota-admin-portal steps: @@ -58,6 +58,11 @@ jobs: tags: ${{ steps.login-ecr.outputs.registry }}/${{ env.PROJECT }}:${{ env.TAG}}-${{ env.ENVIRONMENT }} cache-from: type=registry,ref=${{ steps.login-ecr.outputs.registry }}/${{ env.PROJECT }}:${{ env.TAG}}-${{ env.ENVIRONMENT }} cache-to: type=inline + - name: Notify deploy + uses: rtCamp/action-slack-notify@v2 + env: + MSG_MINIMAL: true + SLACK_MESSAGE: "Deploying to ${{ env.ENV }}... :partydeploy:" - name: Deploy id: deploy env: @@ -69,15 +74,17 @@ jobs: --set image.name=$PROJECT \ --set image.tag=$TAG-$ENVIRONMENT \ --wait -i -f k8s/values-$ENVIRONMENT.yaml $PROJECT k8s/ + - name: Notify if success + if: ${{ success() }} uses: rtCamp/action-slack-notify@v2 env: MSG_MINIMAL: true - SLACK_MESSAGE: Successfully deployed to ${{ env.ENVIRONMENT }}! - if: ${{ success() }} + SLACK_MESSAGE: "Successfully deployed to ${{ env.ENV }}! :gopher_party:" + - name: Notify if failure + if: ${{ failure() }} uses: rtCamp/action-slack-notify@v2 env: SLACK_COLOR: ${{ job.status }} - SLACK_MESSAGE: Job failed! - if: ${{ failure() }} + SLACK_MESSAGE: "Something failed! :this-is-fine:" \ No newline at end of file