[WIFI-13169] Add support for master/slave nodes #60
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 Docker image | |
on: | |
push: | |
paths-ignore: | |
- '**.md' | |
branches: | |
- master | |
- 'release/*' | |
tags: | |
- 'v*' | |
pull_request: | |
branches: | |
- master | |
- 'release/*' | |
defaults: | |
run: | |
shell: bash | |
jobs: | |
docker: | |
runs-on: ubuntu-20.04 | |
env: | |
DOCKER_REGISTRY_URL: tip-tip-wlan-cloud-ucentral.jfrog.io | |
DOCKER_REGISTRY_USERNAME: ucentral | |
steps: | |
- name: Checkout actions repo | |
uses: actions/checkout@v2 | |
with: | |
repository: Telecominfraproject/.github | |
path: github | |
- name: Build and push Docker image | |
uses: ./github/composite-actions/docker-image-build | |
with: | |
image_name: owls-ui | |
registry: tip-tip-wlan-cloud-ucentral.jfrog.io | |
registry_user: ucentral | |
registry_password: ${{ secrets.DOCKER_REGISTRY_PASSWORD }} | |
- name: Notify on failure via Slack | |
if: failure() && github.ref == 'refs/heads/master' | |
uses: rtCamp/action-slack-notify@v2 | |
env: | |
SLACK_USERNAME: GitHub Actions failure notifier | |
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }} | |
SLACK_COLOR: "${{ job.status }}" | |
SLACK_ICON: https://raw.githubusercontent.com/quintessence/slack-icons/master/images/github-logo-slack-icon.png | |
SLACK_TITLE: Docker build failed for OWLS-UI service |