Skip to content

Commit

Permalink
Merge pull request #47 from buluma/testing
Browse files Browse the repository at this point in the history
set concurrency
  • Loading branch information
buluma authored Mar 3, 2022
2 parents 9075d41 + f7b421a commit 5afacf9
Show file tree
Hide file tree
Showing 7 changed files with 49 additions and 17 deletions.
2 changes: 1 addition & 1 deletion .github/release-drafter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,6 @@ version-resolver:
- 'patch'
default: patch
template: |
## Changes
## Rifle, Rifle, Rifle!
$CHANGES
23 changes: 21 additions & 2 deletions .github/workflows/gitlab_trigger.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,25 @@ name: Mirror and run GitLab CI

on: [push]

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: actions/checkout@v2.4.0
- uses: act10ns/slack@v1
with:
status: starting
channel: "#ansible"
message: Starting buluma.haproxy GitLab Trigger...
if: always()
- uses: actions/checkout@v3
- name: Mirror + trigger CI
uses: SvanBoxel/gitlab-mirror-and-ci-action@master
uses: buluma/gitlab-mirror-ci-action@1.0.6
with:
args: "buluma/ansible-role-haproxy"
env:
Expand All @@ -18,3 +30,10 @@ jobs:
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()
16 changes: 8 additions & 8 deletions .github/workflows/molecule.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,22 +6,22 @@
name: Ansible Molecule

on:
push:
branches:
- '**'
tags-ignore:
- '*'
pull_request:
# Schedule updates (once daily)
schedule:
- cron: '15 8 * * *'
workflow_dispatch:
push: {branches: ["master", "main", "testing"]}

concurrency:
group: ${{ github.ref }}-${{ github.workflow }}
cancel-in-progress: true

jobs:
lint:
runs-on: ubuntu-20.04
steps:
- name: checkout
uses: actions/checkout@v2.4.0
uses: actions/checkout@v3
with:
path: "${{ github.repository }}"
- name: molecule
Expand Down Expand Up @@ -58,7 +58,7 @@ jobs:
tag: "focal"
steps:
- name: checkout
uses: actions/checkout@v2.4.0
uses: actions/checkout@v3
with:
path: "${{ github.repository }}"
- name: disable apparmor for mysql
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/release_drafter.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
---
#
# Ansible managed
#

name: Release Drafter

on:
Expand Down
6 changes: 5 additions & 1 deletion .github/workflows/requirements2png.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,18 @@
on:
- push

concurrency:
group: ${{ github.ref }}-${{ github.workflow }}
cancel-in-progress: true

name: Ansible Graphviz

jobs:
build:
runs-on: ubuntu-20.04
steps:
- name: checkout
uses: actions/checkout@v2.4.0
uses: actions/checkout@v3
with:
path: ${{ github.repository }}
- name: create png
Expand Down
11 changes: 8 additions & 3 deletions .github/workflows/todo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,18 @@ name: "TODO 2 Issue"
on:
push:

concurrency:
group: ${{ github.ref }}-${{ github.workflow }}
cancel-in-progress: true

jobs:
build:
runs-on: "ubuntu-20.04"
steps:
- uses: "actions/checkout@v2.4.0"
- uses: "actions/checkout@v3"
- name: "TODO to Issue"
uses: "alstr/todo-to-issue-action@v4.6"
uses: "buluma/todo-to-issue-action@v1.0.1"
id: "todo"
with:
TOKEN: ${{ secrets.GITHUB_TOKEN }}
USER_PROJECTS: $buluma/Ansible/To do
PROJECTS_SECRET: ${{ secrets.PROJECTS_SECRET }}
4 changes: 2 additions & 2 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@

Apache License
Version 2.0, 02 2022
Version 2.0, 03 2022
http://www.apache.org/licenses/

TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
Expand Down Expand Up @@ -187,7 +187,7 @@
same "printed page" as the copyright notice for easier
identification within third-party archives.

Copyright 2022 Michael Buluma (me@buluma.co.ke)
Copyright 2022 Michael Buluma (me@buluma.me.ke)

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Expand Down

0 comments on commit 5afacf9

Please sign in to comment.