#25738 Adding API integration (#27377) #1099
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: Build/Push dotCMS docker image (master) | |
on: | |
push: | |
branches: | |
- 'master' | |
- 'main' | |
- 'trunk' | |
- 'build-and-push-master' | |
jobs: | |
build-push-image: | |
name: Build/Push Image | |
uses: ./.github/workflows/maven-build-docker-image.yml | |
with: | |
ref: master | |
docker_platforms: linux/amd64,linux/arm64 | |
secrets: | |
docker_io_username: ${{ secrets.DOCKER_USERNAME }} | |
docker_io_token: ${{ secrets.DOCKER_TOKEN }} | |
finish-build-push: | |
name: Finish Build/Push | |
needs: build-push-image | |
runs-on: ubuntu-latest | |
steps: | |
- name: Slack Notification | |
uses: rtCamp/action-slack-notify@v2 | |
env: | |
SLACK_WEBHOOK: ${{ secrets.DEVELOPERS_SLACK_WEBHOOK }} | |
SLACK_USERNAME: dotBot | |
SLACK_TITLE: "Attention dotters: Docker image built!" | |
SLACK_MSG_AUTHOR: " " | |
MSG_MINIMAL: true | |
SLACK_FOOTER: "" | |
SLACK_ICON: https://avatars.githubusercontent.com/u/1005263?s=200&v=4 | |
SLACK_MESSAGE: "This automated script is happy to announce that a new docker image has been built for *master* with tags: [${{ needs.build-push-image.outputs.tags }}] :docker:" | |
if: success() |