-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
1.0.0 Release - Updated OS Support and Ansible Version Support (#6)
* linting fixes * add molecule tests * removed support for ubuntu 16.04 * add support for Ubuntu 22.04 * change syntax and modify cgroup perms * use new plugin * set cgroupns * change first found * attempt to use ce/os instead of os * use ce/os * remove deprecated debian 9 * change readme, and license * build pages * add documentation link * add documentation to galaxy.yml
- Loading branch information
1 parent
55df3b1
commit 474b945
Showing
79 changed files
with
3,581 additions
and
792 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
name: "ericsysmin.docker.docker" | ||
on: | ||
push: | ||
paths: | ||
- "roles/docker/**" | ||
- "molecule/docker/**" | ||
- ".github/workflows/docker.yml" | ||
pull_request: | ||
paths: | ||
- "roles/docker/**" | ||
- "molecule/docker/**" | ||
- ".github/workflows/docker.yml" | ||
jobs: | ||
molecule: | ||
runs-on: ubuntu-latest | ||
env: | ||
PY_COLORS: 1 | ||
ANSIBLE_FORCE_COLOR: 1 | ||
strategy: | ||
fail-fast: true | ||
matrix: | ||
molecule_distro: | ||
- { "distro": "centos-8", "command": "/usr/sbin/init" } | ||
- { "distro": "fedora-32", "command": "/usr/sbin/init" } | ||
- { "distro": "fedora-31", "command": "/usr/sbin/init" } | ||
- { "distro": "fedora-30", "command": "/usr/lib/systemd/systemd" } | ||
- { "distro": "ubuntu-18.04", "command": "/lib/systemd/systemd" } | ||
- { "distro": "ubuntu-20.04", "command": "/lib/systemd/systemd" } | ||
- { "distro": "ubuntu-22.04", "command": "/lib/systemd/systemd" } | ||
- { "distro": "debian-10", "command": "/lib/systemd/systemd" } | ||
- { "distro": "debian-11", "command": "/lib/systemd/systemd" } | ||
collection_role: | ||
- docker | ||
steps: | ||
- name: Check out code | ||
uses: actions/checkout@v1 | ||
with: | ||
path: ansible_collections/ericsysmin/docker | ||
|
||
- name: Set up Python 3.12 | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: 3.12 | ||
|
||
- name: Install dependencies | ||
run: | | ||
sudo apt install apt-transport-https ca-certificates curl software-properties-common | ||
curl -fsSL https://get.docker.com -o get-docker.sh | ||
sudo sh get-docker.sh | ||
python -m pip install --upgrade pip | ||
pip install ansible molecule yamllint ansible-lint molecule-plugins[docker] | ||
- name: Run role tests | ||
run: >- | ||
molecule --version && | ||
ansible --version && | ||
MOLECULE_COMMAND=${{ matrix.molecule_distro.command }} | ||
MOLECULE_DISTRO=${{ matrix.molecule_distro.distro }} | ||
molecule --debug test -s ${{ matrix.collection_role }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
# Sample workflow for building and deploying a Jekyll site to GitHub Pages | ||
name: Deploy Jekyll with GitHub Pages dependencies preinstalled | ||
|
||
on: | ||
# Runs on pushes targeting the default branch | ||
push: | ||
branches: ["1.0.0-dev"] | ||
|
||
# Allows you to run this workflow manually from the Actions tab | ||
workflow_dispatch: | ||
|
||
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages | ||
permissions: | ||
contents: read | ||
pages: write | ||
id-token: write | ||
|
||
# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued. | ||
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete. | ||
concurrency: | ||
group: "pages" | ||
cancel-in-progress: false | ||
|
||
jobs: | ||
# Build job | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
- name: Setup Pages | ||
uses: actions/configure-pages@v4 | ||
- name: Set up Python 3.12 | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: 3.12 | ||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install antsibull-docs ansible | ||
ls -lart | ||
ansible-galaxy collection install . | ||
antsibull-docs sphinx-init --use-current --dest-dir dest ericsysmin.docker | ||
cd dest; pip install -r requirements.txt | ||
./build.sh | ||
mv build/html ../_site | ||
- name: Upload artifact | ||
uses: actions/upload-pages-artifact@v3 | ||
|
||
# Deployment job | ||
deploy: | ||
environment: | ||
name: github-pages | ||
url: ${{ steps.deployment.outputs.page_url }} | ||
runs-on: ubuntu-latest | ||
needs: build | ||
steps: | ||
- name: Deploy to GitHub Pages | ||
id: deployment | ||
uses: actions/deploy-pages@v4 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
=============================== | ||
Ericsysmin.Docker Release Notes | ||
=============================== | ||
|
||
.. contents:: Topics | ||
|
||
|
||
v1.0.0 | ||
====== | ||
|
||
Release Summary | ||
--------------- | ||
|
||
1.0.0 release of the Docker role | ||
|
||
Major Changes | ||
------------- | ||
|
||
- added recent versions of OS tests | ||
- ensured existing role works with newer OS releases | ||
- updated all tasks to meet newer ansible-lint requirements | ||
- updated molecule testing | ||
|
||
New Roles | ||
--------- | ||
|
||
- ericsysmin.docker.docker - Ansible role to deploy Docker CE or Docker EE |
Oops, something went wrong.