forked from buluma/ansible-role-haproxy
-
Notifications
You must be signed in to change notification settings - Fork 0
47 lines (44 loc) · 1.17 KB
/
gitlab_trigger.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
---
name: Mirror and run GitLab CI
on:
push:
branches:
- master
- main
- testing
paths-ignore:
- '**/README.md'
- '**/CHANGELOG.md'
concurrency:
group: ${{ github.ref }}-${{ github.workflow }}
cancel-in-progress: true
jobs:
build:
runs-on: ubuntu-latest
env:
SLACK_WEBHOOK_URL: "${{ secrets.SLACK_WEBHOOK_URL }}"
steps:
- uses: act10ns/slack@v1
with:
status: starting
channel: "#ansible"
message: Starting buluma.haproxy GitLab Trigger...
if: always()
- uses: actions/checkout@v4
- name: Mirror + trigger CI
uses: buluma/gitlab-mirror-ci-action@1.0.7
with:
args: "buluma/ansible-role-haproxy"
env:
GITLAB_HOSTNAME: "gitlab.com"
GITLAB_USERNAME: "buluma"
GITLAB_PASSWORD: ${{ secrets.GITLAB_PASSWORD }}
GITLAB_PROJECT_ID: "33687713"
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Slack Notification
uses: act10ns/slack@v1
with:
status: "${{ job.status }}"
steps: "${{ toJson(steps) }}"
channel: "#ansible"
if: always()