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

1.0.0 Release - Updated OS Support and Ansible Version Support #6

Merged
merged 24 commits into from
Feb 2, 2024
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
59 changes: 59 additions & 0 deletions .github/workflows/docker.yml
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 }}
60 changes: 60 additions & 0 deletions .github/workflows/pages.yml
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
10 changes: 5 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,23 +1,23 @@
---
name: "release"
name: release
on:
release:
types:
- created
jobs:
release:
runs-on: ubuntu-18.04
runs-on: ubuntu-latest
env:
ANSIBLE_GALAXY_TOKEN: ${{ secrets.ANSIBLE_GALAXY_TOKEN }}
ANSIBLE_FORCE_COLOR: 1
steps:
- name: Check out code
uses: actions/checkout@v1

- name: Set up Python 3.8
uses: actions/setup-python@v1
- name: Set up Python 3.12
uses: actions/setup-python@v5
with:
python-version: 3.8
python-version: 3.12

- name: Install dependencies
run: |
Expand Down
43 changes: 0 additions & 43 deletions .travis.yml

This file was deleted.

33 changes: 0 additions & 33 deletions .yamllint

This file was deleted.

27 changes: 27 additions & 0 deletions CHANGELOG.rst
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
Loading