mirror of
https://github.com/Telecominfraproject/wlan-cloud-owls.git
synced 2026-01-27 02:22:44 +00:00
52 lines
1.3 KiB
YAML
52 lines
1.3 KiB
YAML
name: CI
|
|
|
|
on:
|
|
push:
|
|
paths-ignore:
|
|
- 'openapi/**'
|
|
- '**.md'
|
|
branches:
|
|
- main
|
|
- 'release/*'
|
|
tags:
|
|
- 'v*'
|
|
pull_request:
|
|
branches:
|
|
- main
|
|
- '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@v3
|
|
with:
|
|
repository: Telecominfraproject/.github
|
|
path: github
|
|
|
|
- name: Build and push Docker image
|
|
uses: ./github/composite-actions/docker-image-build
|
|
with:
|
|
image_name: owls
|
|
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/main'
|
|
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 service
|