Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Testing concurrency #7

Merged
merged 2 commits into from
Mar 3, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.python_pip 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-python_pip"
env:
Expand All @@ -18,3 +30,10 @@ jobs:
GITLAB_PASSWORD: ${{ secrets.GITLAB_PASSWORD }}
GITLAB_PROJECT_ID: "33324934"
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Slack Notification
uses: act10ns/slack@v1
with:
status: "${{ job.status }}"
steps: "${{ toJson(steps) }}"
channel: "#ansible"
if: always()
25 changes: 14 additions & 11 deletions .github/workflows/molecule.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,25 +6,26 @@
name: Ansible Molecule

on:
push:
branches:
- '**'
tags-ignore:
- '*'
pull_request:
# Schedule updates (once daily)
schedule:
- cron: '31 16 16 * *'
- cron: '31 16 * * *'
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
uses: buluma/molecule-action@v4.0.5
uses: buluma/molecule-action@v4.0.6
with:
command: lint
test:
Expand Down Expand Up @@ -53,17 +54,19 @@ jobs:
tag: "latest"
- image: "docker-ubuntu-systemd"
tag: "bionic"
- image: "docker-ubuntu-systemd"
tag: "focal"
steps:
- name: checkout
uses: actions/checkout@v2.4.0
uses: actions/checkout@v3
with:
path: "${{ github.repository }}"
- name: disable apparmor for mysql
run: sudo ln -s /etc/apparmor.d/usr.sbin.mysqld /etc/apparmor.d/disable/
- name: parse apparmor for mysql
run: sudo apparmor_parser -R /etc/apparmor.d/usr.sbin.mysqld
- name: molecule
uses: buluma/molecule-action@v4.0.5
uses: buluma/molecule-action@v4.0.6
with:
image: ${{ matrix.config.image }}
tag: ${{ matrix.config.tag }}
5 changes: 5 additions & 0 deletions .github/workflows/release_drafter.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,15 @@
---
#
# Ansible managed
#

name: Release Drafter

on:
push:
# branches to consider in the event; optional, defaults to all
branches:
- master
- main
- testing
# pull_request event is required only for autolabeler
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 }}
62 changes: 61 additions & 1 deletion .gitlab-ci.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
image: "buluma/github-action-molecule:4.0.5"
image: "buluma/github-action-molecule:4.0.6"

services:
- docker:dind
Expand Down Expand Up @@ -34,6 +34,8 @@ molecule:
tag: "latest"
- image: "docker-ubuntu-systemd"
tag: "bionic"
- image: "docker-ubuntu-systemd"
tag: "focal"

testing:
script:
Expand Down Expand Up @@ -61,7 +63,65 @@ testing:
tag: "latest"
- image: "docker-ubuntu-systemd"
tag: "bionic"
- image: "docker-ubuntu-systemd"
tag: "focal"

role_testing:
script:
- image=${image} tag=${tag} ansible-galaxy install buluma.python_pip
rules:
- if: $CI_COMMIT_REF_NAME == "testing"
retry: 1
parallel:
matrix:
- image: "enterpriselinux"
tag: "latest"
- image: "debian-systemd"
tag: "latest"
- image: "debian-systemd"
tag: "bookworm"
- image: "fedora-systemd"
tag: "34"
- image: "fedora-systemd"
tag: "latest"
- image: "fedora-systemd"
tag: "rawhide"
- image: "opensuse"
tag: "latest"
- image: "docker-ubuntu-systemd"
tag: "latest"
- image: "docker-ubuntu-systemd"
tag: "bionic"
- image: "docker-ubuntu-systemd"
tag: "focal"

galaxy:
script:
- ansible-galaxy role info buluma.python_pip

role_testing_live:
script:
- image=${image} tag=${tag} ansible-galaxy install buluma.python_pip
retry: 1
parallel:
matrix:
- image: "enterpriselinux"
tag: "latest"
- image: "debian-systemd"
tag: "latest"
- image: "debian-systemd"
tag: "bookworm"
- image: "fedora-systemd"
tag: "34"
- image: "fedora-systemd"
tag: "latest"
- image: "fedora-systemd"
tag: "rawhide"
- image: "opensuse"
tag: "latest"
- image: "docker-ubuntu-systemd"
tag: "latest"
- image: "docker-ubuntu-systemd"
tag: "bionic"
- image: "docker-ubuntu-systemd"
tag: "focal"
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