Skip to content

Commit

Permalink
Fix token injection and Fedora updates
Browse files Browse the repository at this point in the history
  • Loading branch information
bviktor committed Nov 15, 2023
1 parent 2e7a407 commit 4fb30e5
Show file tree
Hide file tree
Showing 8 changed files with 43 additions and 3 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/almalinux-8.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ jobs:
- name: Obtain sources
uses: actions/checkout@v3
- name: Test Galaxy role
env:
CF_Token: ${{ secrets.CF_Token }}
run: >
CONT_ID=$(podman run --rm -v ${{ github.workspace }}:/repo -v /sys/fs/cgroup:/sys/fs/cgroup:ro
--tmpfs /tmp --tmpfs /run --privileged --detach bviktor/ansible-systemd-almalinux:8) &&
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/almalinux-9.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ jobs:
- name: Obtain sources
uses: actions/checkout@v3
- name: Test Galaxy role
env:
CF_Token: ${{ secrets.CF_Token }}
run: >
CONT_ID=$(podman run --rm -v ${{ github.workspace }}:/repo -v /sys/fs/cgroup:/sys/fs/cgroup:ro
--tmpfs /tmp --tmpfs /run --privileged --detach bviktor/ansible-systemd-almalinux:9) &&
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
name: Fedora 37
name: Fedora 38

on: # yamllint disable-line rule:truthy
push:
Expand All @@ -16,9 +16,11 @@ jobs:
- name: Obtain sources
uses: actions/checkout@v3
- name: Test Galaxy role
env:
CF_Token: ${{ secrets.CF_Token }}
run: >
CONT_ID=$(podman run --rm -v ${{ github.workspace }}:/repo -v /sys/fs/cgroup:/sys/fs/cgroup:ro
--tmpfs /tmp --tmpfs /run --privileged --detach bviktor/ansible-systemd-fedora:37) &&
--tmpfs /tmp --tmpfs /run --privileged --detach bviktor/ansible-systemd-fedora:38) &&
podman exec ${CONT_ID} /bin/bash -c
"if [ -f requirements.yml ]; then ansible-galaxy role install --force -r requirements.yml -p ..; fi &&
ANSIBLE_ROLES_PATH=.. ANSIBLE_FORCE_COLOR=true ansible-playbook tests/main.yml" &&
Expand Down
27 changes: 27 additions & 0 deletions .github/workflows/fedora-39.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
---
name: Fedora 39

on: # yamllint disable-line rule:truthy
push:
branches:
- main
- master
pull_request:
branches: []

jobs:
ansible-ci:
runs-on: ubuntu-latest
steps:
- name: Obtain sources
uses: actions/checkout@v3
- name: Test Galaxy role
env:
CF_Token: ${{ secrets.CF_Token }}
run: >
CONT_ID=$(podman run --rm -v ${{ github.workspace }}:/repo -v /sys/fs/cgroup:/sys/fs/cgroup:ro
--tmpfs /tmp --tmpfs /run --privileged --detach bviktor/ansible-systemd-fedora:39) &&
podman exec ${CONT_ID} /bin/bash -c
"if [ -f requirements.yml ]; then ansible-galaxy role install --force -r requirements.yml -p ..; fi &&
ANSIBLE_ROLES_PATH=.. ANSIBLE_FORCE_COLOR=true ansible-playbook tests/main.yml" &&
podman stop ${CONT_ID}
2 changes: 2 additions & 0 deletions .github/workflows/ubuntu-18.04.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ jobs:
- name: Obtain sources
uses: actions/checkout@v3
- name: Test Galaxy role
env:
CF_Token: ${{ secrets.CF_Token }}
run: >
CONT_ID=$(podman run --rm -v ${{ github.workspace }}:/repo -v /sys/fs/cgroup:/sys/fs/cgroup:ro
--tmpfs /tmp --tmpfs /run --privileged --detach bviktor/ansible-systemd-ubuntu:18.04) &&
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/ubuntu-20.04.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ jobs:
- name: Obtain sources
uses: actions/checkout@v3
- name: Test Galaxy role
env:
CF_Token: ${{ secrets.CF_Token }}
run: >
CONT_ID=$(podman run --rm -v ${{ github.workspace }}:/repo -v /sys/fs/cgroup:/sys/fs/cgroup:ro
--tmpfs /tmp --tmpfs /run --privileged --detach bviktor/ansible-systemd-ubuntu:20.04) &&
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/ubuntu-22.04.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ jobs:
- name: Obtain sources
uses: actions/checkout@v3
- name: Test Galaxy role
env:
CF_Token: ${{ secrets.CF_Token }}
run: >
CONT_ID=$(podman run --rm -v ${{ github.workspace }}:/repo -v /sys/fs/cgroup:/sys/fs/cgroup:ro
--tmpfs /tmp --tmpfs /run --privileged --detach bviktor/ansible-systemd-ubuntu:22.04) &&
Expand Down
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,8 @@ N/A
| Linter | ✅ | [![Lint](https://github.com/noobient/ansible-galaxy-cloudflare/actions/workflows/lint.yml/badge.svg)](https://github.com/noobient/ansible-galaxy-cloudflare/actions/workflows/lint.yml) |
| AlmaLinux 8 | ✅ | [![AlmaLinux 8](https://github.com/noobient/ansible-galaxy-cloudflare/actions/workflows/almalinux-8.yml/badge.svg)](https://github.com/noobient/ansible-galaxy-cloudflare/actions/workflows/almalinux-8.yml) |
| AlmaLinux 9 | ✅ | [![AlmaLinux 9](https://github.com/noobient/ansible-galaxy-cloudflare/actions/workflows/almalinux-9.yml/badge.svg)](https://github.com/noobient/ansible-galaxy-cloudflare/actions/workflows/almalinux-9.yml) |
| Fedora 37 | ✅ | [![Fedora 37](https://github.com/noobient/ansible-galaxy-cloudflare/actions/workflows/fedora-37.yml/badge.svg)](https://github.com/noobient/ansible-galaxy-cloudflare/actions/workflows/fedora-37.yml) |
| Fedora 38 | ✅ | [![Fedora 38](https://github.com/noobient/ansible-galaxy-cloudflare/actions/workflows/fedora-38.yml/badge.svg)](https://github.com/noobient/ansible-galaxy-cloudflare/actions/workflows/fedora-38.yml) |
| Fedora 39 | ✅ | [![Fedora 39](https://github.com/noobient/ansible-galaxy-cloudflare/actions/workflows/fedora-39.yml/badge.svg)](https://github.com/noobient/ansible-galaxy-cloudflare/actions/workflows/fedora-39.yml) |
| Ubuntu 18.04 | ✅ | [![Ubuntu 18.04](https://github.com/noobient/ansible-galaxy-cloudflare/actions/workflows/ubuntu-18.04.yml/badge.svg)](https://github.com/noobient/ansible-galaxy-cloudflare/actions/workflows/ubuntu-18.04.yml) |
| Ubuntu 20.04 | ✅ | [![Ubuntu 20.04](https://github.com/noobient/ansible-galaxy-cloudflare/actions/workflows/ubuntu-20.04.yml/badge.svg)](https://github.com/noobient/ansible-galaxy-cloudflare/actions/workflows/ubuntu-20.04.yml) |
| Ubuntu 22.04 | ✅ | [![Ubuntu 22.04](https://github.com/noobient/ansible-galaxy-cloudflare/actions/workflows/ubuntu-22.04.yml/badge.svg)](https://github.com/noobient/ansible-galaxy-cloudflare/actions/workflows/ubuntu-22.04.yml) |

0 comments on commit 4fb30e5

Please sign in to comment.