Skip to content

Commit

Permalink
Merge pull request #89 from arup-group/use_reusable_github_actions_in…
Browse files Browse the repository at this point in the history
…_ci_build

Use reusable GitHub actions in CI build
  • Loading branch information
mfitz authored May 23, 2024
2 parents 0756b6a + 8a86dd0 commit 73c0daf
Showing 1 changed file with 10 additions and 22 deletions.
32 changes: 10 additions & 22 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ jobs:

- name: Verify with Maven
run: mvn -B verify --file pom.xml
id: maven-verify

- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v4
Expand Down Expand Up @@ -55,25 +56,12 @@ jobs:
echo $repo_slug
aws s3 cp app.zip s3://$AWS_S3_CODE_BUCKET/$repo_slug.zip
- name: Send build success notification
if: success()
uses: rtCamp/[email protected]
env:
SLACK_MESSAGE: ${{ github.repository }} build ${{ github.run_number }} launched by ${{ github.actor }} has succeeded
SLACK_TITLE: Build Success
SLACK_CHANNEL: city-modelling-feeds
SLACK_USERNAME: GitHub Build Bot
SLACK_ICON: https://slack-files2.s3-us-west-2.amazonaws.com/avatars/2017-12-19/288981919427_f45f04edd92902a96859_512.png
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}

- name: Send build failure notification
if: failure()
uses: rtCamp/[email protected]
env:
SLACK_COLOR: '#FF0000'
SLACK_MESSAGE: ${{ github.repository }} build ${{ github.run_number }} launched by ${{ github.actor }} has failed
SLACK_TITLE: Build Failure!
SLACK_CHANNEL: city-modelling-feeds
SLACK_USERNAME: GitHub Build Bot
SLACK_ICON: https://slack-files2.s3-us-west-2.amazonaws.com/avatars/2017-12-19/288981919427_f45f04edd92902a96859_512.png
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}
slack-notify-ci:
needs: deploy
if: always()
uses: arup-group/actions-city-modelling-lab/.github/workflows/slack-notify.yml@main
secrets: inherit
with:
result: ${{needs.deploy.result}}
channel: city-modelling-feeds
message: CI build

0 comments on commit 73c0daf

Please sign in to comment.