Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
169 commits
Select commit Hold shift + click to select a range
ebeb2fe
feat(proxy): allow setting proxy in systemd
noelmcloughlin Dec 4, 2020
f823af2
fix(typo): refresh not refrsh
noelmcloughlin Dec 4, 2020
1d1f4b2
Merge pull request #267 from noelmcloughlin/new
noelmcloughlin Dec 15, 2020
943ca5e
Merge pull request #265 from noelmcloughlin/proxy
noelmcloughlin Dec 15, 2020
ab48dcd
ci(gitlab-ci): use GitLab CI as Travis CI replacement
myii Dec 16, 2020
228ca07
feat(arm64): add support for Raspberry Pi 4 running Ubuntu 20.04
japtain-cack Dec 17, 2020
596ee03
Merge pull request #270 from japtain-cack/nsnow/arm64
noelmcloughlin Dec 18, 2020
60ec41f
chore(release): 1.1.0 [skip ci]
semantic-release-bot Dec 18, 2020
2b04ee7
fix(compose-ng): add support for setting container devices
japtain-cack Dec 17, 2020
b739204
Merge pull request #269 from japtain-cack/nsnow/devices
myii Dec 18, 2020
8835a9f
chore(release): 1.1.1 [skip ci]
semantic-release-bot Dec 18, 2020
a5b95c0
ci(gitlab-ci): add `rubocop` linter (with `allow_failure`) [skip ci]
myii Dec 19, 2020
648666d
ci(commitlint): ensure `upstream/master` uses main repo URL [skip ci]
myii Dec 20, 2020
8624eb0
ci(pre-commit): update hook for `rubocop` [skip ci]
myii Feb 2, 2021
7e556b4
chore: standardise structure (`.gitignore` & `_mapdata.rb`) [skip ci]
myii Feb 11, 2021
d88eac1
ci(gemfile+lock): use `ssf` customised `kitchen-docker` repo [skip ci]
myii Feb 17, 2021
fc90929
chore(shellcheck): switch hook for `shellcheck` [skip ci]
dafyddj Feb 21, 2021
3c3b49c
chore(rubocop): allow use of `YAML.load` for `_mapdata.rb` [skip ci]
baby-gnu Feb 23, 2021
2dd2f19
chore(yamllint): add `.git/` to ignores [skip ci]
myii Mar 5, 2021
28d40b3
fix(osmap): use CentOS settings as basis for Oracle & Amazon Linux
myii Mar 5, 2021
1febf87
ci(github/kitchen): use GitHub Actions for Linux testing [skip ci]
myii Mar 7, 2021
2e15ae3
ci(kitchen+ci): use latest pre-salted images (after CVE) [skip ci]
myii Mar 7, 2021
f839b06
refactor(map files): cleanup and small fixes
hatifnatt Mar 10, 2021
6665a27
Merge pull request #275 from hatifnatt/fix-map-files
myii Mar 10, 2021
3f85131
chore(release): 1.1.2 [skip ci]
semantic-release-bot Mar 10, 2021
7d73e8a
fix(python-docker): install with pip
hatifnatt Mar 10, 2021
f8f96f1
fix(service): change default service name
hatifnatt Mar 9, 2021
c168ee1
test(service): enable for `archive` and `package` suites
myii Mar 10, 2021
69d7e65
test: standardise use of `share` suite & `_mapdata` state [skip ci]
myii Mar 23, 2021
c9ade73
chore: update `CODEOWNERS` & `.yamllint` re: `kitchen-vagrant` [skip ci]
myii Apr 5, 2021
b0b1ba2
Merge pull request #277 from hatifnatt/fix-default-service-name
noelmcloughlin Apr 16, 2021
3d002dd
chore(release): 2.0.0 [skip ci]
semantic-release-bot Apr 16, 2021
413cf58
fix(config): write config dictionary to daemon.json
Apr 20, 2021
0e6febc
fix(config): write config dictionary to daemon.json
Apr 20, 2021
ea2505b
fix(config): write daemon_config dictionary to daemon.json
Apr 20, 2021
4af9866
fix(config): write daemon_config dictionary to daemon.json
Apr 20, 2021
1cdfb57
fix(config): revert previous changes in file.sls
Apr 21, 2021
3631fdb
fix(config): remove empty daemon.json
Apr 21, 2021
7a3c389
Merge pull request #282 from danny-smit/configure-daemon-json-file
noelmcloughlin Apr 21, 2021
fbea378
Merge pull request #276 from hatifnatt/install-python-docker-with-pip
noelmcloughlin Apr 21, 2021
e0196e4
chore(release): 2.0.1 [skip ci]
semantic-release-bot Apr 21, 2021
d075a0f
fix(config): remove block comment from daemon file
keslerm Apr 22, 2021
8e8e6d4
Merge pull request #283 from keslerm/master
noelmcloughlin Apr 22, 2021
000dff4
chore(release): 2.0.2 [skip ci]
semantic-release-bot Apr 22, 2021
2c7fe1a
ci(kitchen+gitlab): adjust matrix to add `3003` [skip ci]
myii Apr 23, 2021
6967a98
fix(config): remove daemon.json in clean states
Apr 22, 2021
03250b4
Merge pull request #284 from danny-smit/tests-for-daemon-json-file
myii Apr 23, 2021
e443838
chore(release): 2.0.3 [skip ci]
semantic-release-bot Apr 23, 2021
b0021eb
docs(readme): fix headings and links [skip ci]
myii May 5, 2021
cec557a
ci: add `arch-master` to matrix and update `.travis.yml` [skip ci]
myii May 9, 2021
2f60c21
fix(config): replace URLs to bintray.com by github.com
danny-smit May 17, 2021
4cc1e70
docs: remove files which aren't formula-specific [skip ci]
myii May 17, 2021
d434e25
fix(config): use 'latest' docker-compose versions from github
danny-smit May 19, 2021
2fd5157
Merge pull request #290 from danny-smit/bintray2github
myii May 19, 2021
64727cb
chore(release): 2.0.4 [skip ci]
semantic-release-bot May 19, 2021
b34f434
fix(service): reload the docker service when daemon.json has changed
danny-smit May 17, 2021
428dccd
fix(clean): fix syntax error with use_upstream repo
Apr 23, 2021
4730a72
fix(clean): fix clean of repo for the RedHat family
Apr 26, 2021
5a62de9
fix(test): add missing tests to verify installation from repo
Apr 26, 2021
af16bb7
fix(clean): make repo install and clean states consistent
danny-smit Apr 26, 2021
1f5190b
fix(clean): update condition that enables the repo
danny-smit Apr 27, 2021
b3c56cb
fix(clean): remove invalid 'onlyif' statement from repo.clean
danny-smit May 4, 2021
53db7ad
fix(clean): fix syntax error in networks.clean state file
danny-smit May 4, 2021
a7f382f
fix(clean): update enable_repo condition to be more robust
danny-smit May 4, 2021
161d8cc
ci(kitchen): use `master` as default instance for Arch Linux [skip ci]
myii May 19, 2021
7d62dae
chore(pre-commit): use `info` report level for `rstcheck` [skip ci]
myii May 20, 2021
c070739
Merge pull request #285 from danny-smit/fix-clean-with-use-upstream-repo
noelmcloughlin May 20, 2021
0f31a12
chore(release): 2.0.5 [skip ci]
semantic-release-bot May 20, 2021
a28379e
Merge pull request #289 from danny-smit/bugfix_reload_docker_after_co…
noelmcloughlin May 21, 2021
8c012bb
chore(release): 2.0.6 [skip ci]
semantic-release-bot May 21, 2021
89cd4fc
fix(clean): fix syntax error in networks.clean
danny-smit Jun 2, 2021
e3fc334
Merge pull request #291 from danny-smit/clean-networks-syntax-error
myii Jun 2, 2021
049a740
chore(release): 2.0.7 [skip ci]
semantic-release-bot Jun 2, 2021
0615c75
ci(kitchen+gitlab): remove Ubuntu 16.04 & Fedora 32 (EOL) [skip ci]
myii Jun 21, 2021
4d373a1
ci(3003.1): update inc. AlmaLinux, Rocky & `rst-lint` [skip ci]
myii Jul 1, 2021
39fc09a
feat(alma+rocky): add platforms (based on CentOS 8) [skip ci]
myii Jul 5, 2021
fd0b52c
chore(deps): bump `addressable` from `2.7.0` to `2.8.0` [skip ci]
myii Jul 14, 2021
3e55fe9
chore(gemfile+lock): update to latest gem versions (2021-W28) [skip ci]
myii Jul 17, 2021
4ea5f26
ci(kitchen): move `provisioner` block & update `run_command` [skip ci]
myii Jul 17, 2021
1e822d0
ci: add Debian 11 Bullseye & update `yamllint` configuration [skip ci]
myii Jul 18, 2021
b429737
chore(gemfile.lock): update to latest gem versions (2021-W29) [skip ci]
myii Jul 21, 2021
5e2e0d4
chore(gemfile.lock): update to latest gem versions (2021-W30) [skip ci]
myii Jul 26, 2021
8c51ad8
chore(gemfile.lock): update to latest gem versions (2021-W31) [skip ci]
myii Aug 4, 2021
16cc758
ci(gemfile+lock): use `ssf` customised `inspec` repo [skip ci]
myii Aug 4, 2021
9f6695a
chore(gemfile.lock): update to latest gem versions (2021-W32) [skip ci]
myii Aug 9, 2021
258cbf5
chore(gemfile.lock): update to latest gem versions (2021-W33) [skip ci]
myii Aug 16, 2021
4fc33ad
ci(kitchen+ci): update with latest `3003.2` pre-salted images [skip ci]
myii Aug 19, 2021
4a9579f
chore(gemfile.lock): update to latest gem versions (2021-W34) [skip ci]
myii Aug 23, 2021
b854acf
chore(gemfile.lock): update to latest gem versions (2021-W35) [skip ci]
myii Aug 30, 2021
85fb5d4
fix: raspbian pi4 dockerd failing with segmentation fault, issue #286…
auphofBSF Sep 4, 2021
c070b81
chore(release): 2.1.0 [skip ci]
semantic-release-bot Sep 4, 2021
a79f8d3
refactor(jinja2): remove excessive jinja, not useful pattern (#303)
noelmcloughlin Sep 7, 2021
3abb86b
chore(release): 2.1.1 [skip ci]
semantic-release-bot Sep 7, 2021
67ba2af
fix(environ): remove superfluous config dict (#301)
noelmcloughlin Sep 8, 2021
299a1d0
feat(limitnofile): add support to systemd (#302)
noelmcloughlin Sep 8, 2021
aaedb00
fix(coupling): allow docker install without compose (#298)
noelmcloughlin Sep 8, 2021
c0780ad
fix(windows): change id to whoami (#299)
noelmcloughlin Sep 8, 2021
c3efd44
chore(release): 2.2.0 [skip ci]
semantic-release-bot Sep 8, 2021
92883e2
feat(ng): improve ng.clean state and ci (#300)
noelmcloughlin Sep 8, 2021
28aa55d
chore(release): 2.3.0 [skip ci]
semantic-release-bot Sep 8, 2021
850b80d
chore: standardise structure [skip ci]
myii Sep 8, 2021
d8fbb3d
chore(gemfile.lock): update to latest gem versions (2021-W36) [skip ci]
myii Sep 8, 2021
df35704
fix(windows): pip install as user (#306)
noelmcloughlin Sep 9, 2021
6bd5192
chore(release): 2.3.1 [skip ci]
semantic-release-bot Sep 9, 2021
86614ac
chore(windows): update sha256 and pip.install as user (#307)
noelmcloughlin Sep 9, 2021
22f715e
chore(gemfile.lock): update to latest gem versions (2021-W37) [skip ci]
myii Sep 14, 2021
8f71aa7
chore(gemfile.lock): update to latest gem versions (2021-W38) [skip ci]
myii Sep 21, 2021
3dfd8c9
chore(gemfile.lock): update to latest gem versions (2021-W39) [skip ci]
myii Sep 30, 2021
141ae5e
ci(kitchen+ci): update with latest CVE pre-salted images [skip ci]
myii Oct 5, 2021
faad598
chore(gemfile.lock): update to latest gem versions (2021-W40) [skip ci]
myii Oct 6, 2021
0d39870
chore(gemfile.lock): update to latest gem versions (2021-W41) [skip ci]
myii Oct 15, 2021
4758002
chore(gemfile.lock): update to latest gem versions (2021-W42) [skip ci]
myii Oct 23, 2021
a7577f5
chore(gemfile.lock): update to latest gem versions (2021-W43) [skip ci]
myii Oct 26, 2021
caf640a
ci(kitchen+ci): update with `3004` pre-salted images/boxes [skip ci]
myii Nov 23, 2021
10e18e4
chore(gemfile.lock): update to latest gem versions (2021-W47) [skip ci]
myii Nov 23, 2021
02d22df
chore(gemfile.lock): update to latest gem versions (2021-W49) [skip ci]
myii Dec 6, 2021
9583849
chore(gemfile.lock): update to latest gem versions (2021-W50) [skip ci]
myii Dec 14, 2021
5c37bf5
chore(gemfile.lock): update to latest gem versions (2021-W51) [skip ci]
myii Dec 22, 2021
6118fc8
chore(gemfile.lock): update to latest gem versions (2021-W52) [skip ci]
myii Dec 28, 2021
0ecc177
chore(gemfile.lock): update to latest gem versions (2022-W01) [skip ci]
myii Jan 6, 2022
27fdb89
chore(gemfile.lock): update to latest gem versions (2022-W02) [skip ci]
myii Jan 11, 2022
c9ab201
chore(semantic-release): replace broken `m2r` with `m2r2` [skip ci]
myii Jan 17, 2022
7a090b3
chore(gemfile.lock): update to latest gem versions (2022-W03) [skip ci]
myii Jan 17, 2022
8318689
chore(gemfile.lock): update to latest gem versions (2022-W04) [skip ci]
myii Jan 25, 2022
a1a5880
ci(gemfile): allow rubygems proxy to be provided as an env var [skip ci]
noelmcloughlin Jan 26, 2022
6a23c1b
chore(gemfile.lock): update to latest gem versions (2022-W05) [skip ci]
myii Feb 1, 2022
e19468b
ci(kitchen+gitlab): update for new pre-salted images [skip ci]
myii Feb 2, 2022
119939d
chore(gemfile.lock): update to latest gem versions (2022-W06) [skip ci]
myii Feb 7, 2022
db49eba
feat(debian): use repository keyring instead of key_id
javierbertoli Feb 4, 2022
28ea2f9
fix(debian): remove repository using `file` instead of `pkgrepo`
javierbertoli Feb 8, 2022
55ff30a
fix(centos): modify repository url
javierbertoli Feb 8, 2022
410078c
test(repository): redhat's family alternatives for repo url
javierbertoli Feb 8, 2022
949551b
fix(repository): amazonlinux repository url
javierbertoli Feb 9, 2022
652da44
fix(dependencies): add needed packages for Redhat's family members
javierbertoli Feb 9, 2022
cbc7c17
Merge pull request #312 from netmanagers/debian-family-apt-keyrings
javierbertoli Feb 10, 2022
3c2ee22
chore(release): 2.4.0 [skip ci]
semantic-release-bot Feb 10, 2022
c4d221d
chore: standardise structure [skip ci]
myii Feb 12, 2022
6fc940b
ci: update linters to latest versions [skip ci]
myii Feb 12, 2022
bf38410
test(repository): fix `rubocop` violation [skip ci]
myii Feb 11, 2022
80c4591
test(system): add `build_platform_codename` [skip ci]
myii Feb 14, 2022
a13ec28
test(repository): use `system.platform[:codename]` [skip ci]
myii Feb 14, 2022
47e2e0a
chore(gemfile.lock): update to latest gem versions (2022-W07) [skip ci]
myii Feb 15, 2022
9611525
chore(gemfile.lock): update to latest gem versions (2022-W08) [skip ci]
myii Feb 21, 2022
62eae20
fix(osfamilymap): use correct OS arch for deb pkg
keslerm Mar 2, 2022
14eeec9
chore(release): 2.4.1 [skip ci]
semantic-release-bot Mar 2, 2022
31ab3af
fix(debian): avoid adding repositories entries multiple times
javierbertoli Mar 2, 2022
df2b5ae
chore(release): 2.4.2 [skip ci]
semantic-release-bot Mar 2, 2022
71b0f40
chore(gemfile.lock): update to latest gem versions (2022-W09) [skip ci]
myii Mar 4, 2022
3b5fc3f
chore(gemfile.lock): update to latest gem versions (2022-W10) [skip ci]
myii Mar 12, 2022
35ece8f
chore(gemfile.lock): update to latest gem versions (2022-W11) [skip ci]
myii Mar 17, 2022
c962c55
chore(gemfile.lock): update to latest gem versions (2022-W12) [skip ci]
myii Mar 22, 2022
43bb04a
chore(gemfile.lock): update to latest gem versions (2022-W13) [skip ci]
myii Apr 1, 2022
e618ee2
ci(kitchen+gitlab): update for new pre-salted images [skip ci]
myii Apr 3, 2022
b5c51e9
chore(gemfile.lock): update to latest gem versions (2022-W14) [skip ci]
myii Apr 4, 2022
0c90fba
chore(gemfile.lock): update to latest gem versions (2022-W15) [skip ci]
myii Apr 11, 2022
34a59f1
chore(gemfile.lock): update to latest gem versions (2022-W16) [skip ci]
myii Apr 18, 2022
4af7bc6
chore(gemfile.lock): update to latest gem versions (2022-W17) [skip ci]
myii Apr 25, 2022
b5f7e0f
chore(gemfile.lock): update to latest gem versions (2022-W18) [skip ci]
myii May 6, 2022
0c2ea17
chore(gemfile.lock): update to latest gem versions (2022-W19) [skip ci]
myii May 10, 2022
fa98767
test(system.rb): add support for `mac_os_x` [skip ci]
myii May 17, 2022
5f3093c
chore(gemfile.lock): update to latest gem versions (2022-W20) [skip ci]
myii May 17, 2022
8e4e1fa
chore(gemfile.lock): update to latest gem versions (2022-W22) [skip ci]
myii May 30, 2022
77a5237
chore(gemfile.lock): update to latest gem versions (2022-W23) [skip ci]
myii Jun 7, 2022
244195f
ci: update `pre-commit` configuration inc. for pre-commit.ci [skip ci]
myii Jun 8, 2022
d499fd8
chore(gemfile.lock): update to latest gem versions (2022-W24) [skip ci]
myii Jun 15, 2022
85a8dec
chore(gemfile.lock): update to latest gem versions (2022-W26) [skip ci]
myii Jun 30, 2022
da37c28
chore(gemfile.lock): update to latest gem versions (2022-W28) [skip ci]
myii Jul 17, 2022
66ec109
style: format and update pre-commit
jeff350 Oct 15, 2023
24ecc4b
chore(release): 2.4.3 [skip ci]
semantic-release-bot Feb 9, 2024
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
223 changes: 223 additions & 0 deletions .github/workflows/kitchen.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,223 @@
# -*- coding: utf-8 -*-
# vim: ft=yaml
---
name: 'Kitchen (Linux)'
'on': ['push', 'pull_request']

jobs:
kitchen:
runs-on: 'ubuntu-20.04'
env:
CHANGE_MINIKUBE_NONE_USER: true
MINIKUBE_WANTUPDATENOTIFICATION: false
MINIKUBE_WANTREPORTERRORPROMPT: false
MINIKUBE_HOME: '$HOME'
KUBECONFIG: '$HOME/.kube/config'
strategy:
fail-fast: false
matrix:
instance:
# - archive-debian-11-tiamat-py3
# - archive-debian-10-tiamat-py3
# - archive-debian-9-tiamat-py3
# - archive-ubuntu-2204-tiamat-py3
# - archive-ubuntu-2004-tiamat-py3
# - archive-ubuntu-1804-tiamat-py3
# - archive-centos-stream8-tiamat-py3
# - archive-centos-7-tiamat-py3
# - archive-amazonlinux-2-tiamat-py3
# - archive-oraclelinux-8-tiamat-py3
# - archive-oraclelinux-7-tiamat-py3
# - archive-almalinux-8-tiamat-py3
# - archive-rockylinux-8-tiamat-py3
# - archive-debian-11-master-py3
# - package-debian-11-master-py3
# - repo-debian-11-master-py3
# - clean-debian-11-master-py3
# - composeclean-debian-11-master-py3
# - dockeronly-debian-11-master-py3
- debian-11-master-py3
# - archive-debian-10-master-py3
# - package-debian-10-master-py3
# - repo-debian-10-master-py3
# - composeclean-debian-10-master-py3
# - dockeronly-debian-10-master-py3
- debian-10-master-py3
# - archive-debian-9-master-py3
# - package-debian-9-master-py3
# - repo-debian-9-master-py3
# - clean-debian-9-master-py3
# - composeclean-debian-9-master-py3
# - dockeronly-debian-9-master-py3
- debian-9-master-py3
# - archive-ubuntu-2204-master-py3
# - package-ubuntu-2204-master-py3
# - repo-ubuntu-2204-master-py3
# - clean-ubuntu-2204-master-py3
# - composeclean-ubuntu-2204-master-py3
# - dockeronly-ubuntu-2204-master-py3
- ubuntu-2204-master-py3
# - archive-ubuntu-2004-master-py3
# - package-ubuntu-2004-master-py3
# - repo-ubuntu-2004-master-py3
# - clean-ubuntu-2004-master-py3
# - composeclean-ubuntu-2004-master-py3
# - dockeronly-ubuntu-2004-master-py3
- ubuntu-2004-master-py3
# - archive-ubuntu-1804-master-py3
# - package-ubuntu-1804-master-py3
# - repo-ubuntu-1804-master-py3
# - clean-ubuntu-1804-master-py3
# - composeclean-ubuntu-1804-master-py3
# - dockeronly-ubuntu-1804-master-py3
- ubuntu-1804-master-py3
# - archive-centos-stream8-master-py3
# - package-centos-stream8-master-py3
# - repo-centos-stream8-master-py3
# - clean-centos-stream8-master-py3
# - composeclean-centos-stream8-master-py3
# - dockeronly-centos-stream8-master-py3
- centos-stream8-master-py3
# - archive-centos-7-master-py3
# - package-centos-7-master-py3
# - repo-centos-7-master-py3
# - clean-centos-7-master-py3
# - composeclean-centos-7-master-py3
# - dockeronly-centos-7-master-py3
- centos-7-master-py3
# - archive-fedora-36-master-py3
# - package-fedora-36-master-py3
# - repo-fedora-36-master-py3
# - clean-fedora-36-master-py3
# - composeclean-fedora-36-master-py3
# - dockeronly-fedora-36-master-py3
- fedora-36-master-py3
# - archive-fedora-35-master-py3
# - package-fedora-35-master-py3
# - repo-fedora-35-master-py3
# - clean-fedora-35-master-py3
# - composeclean-fedora-35-master-py3
# - dockeronly-fedora-35-master-py3
- fedora-35-master-py3
# - archive-opensuse-leap-153-master-py3
# - package-opensuse-leap-153-master-py3
# - repo-opensuse-leap-153-master-py3
# - clean-opensuse-leap-153-master-py3
# - composeclean-opensuse-leap-153-master-py3
# - dockeronly-opensuse-leap-153-master-py3
# - opensuse-leap-153-master-py3
# - archive-opensuse-tmbl-latest-master-py3
# - package-opensuse-tmbl-latest-master-py3
# - repo-opensuse-tmbl-latest-master-py3
- clean-opensuse-tmbl-latest-master-py3
# - composeclean-opensuse-tmbl-latest-master-py3
# - dockeronly-opensuse-tmbl-latest-master-py3
# - opensuse-tmbl-latest-master-py3
- archive-amazonlinux-2-master-py3
# - package-amazonlinux-2-master-py3
# - repo-amazonlinux-2-master-py3
# - clean-amazonlinux-2-master-py3
# - composeclean-amazonlinux-2-master-py3
# - dockeronly-amazonlinux-2-master-py3
# - amazonlinux-2-master-py3
- archive-oraclelinux-8-master-py3
# - package-oraclelinux-8-master-py3
# - repo-oraclelinux-8-master-py3
# - clean-oraclelinux-8-master-py3
# - composeclean-oraclelinux-8-master-py3
# - dockeronly-oraclelinux-8-master-py3
# - oraclelinux-8-master-py3
- archive-oraclelinux-7-master-py3
# - package-oraclelinux-7-master-py3
# - repo-oraclelinux-7-master-py3
# - clean-oraclelinux-7-master-py3
# - composeclean-oraclelinux-7-master-py3
# - dockeronly-oraclelinux-7-master-py3
# - oraclelinux-7-master-py3
# - archive-arch-base-latest-master-py3
# - package-arch-base-latest-master-py3
# - clean-arch-base-latest-master-py3
# - composeclean-arch-base-latest-master-py3
# - dockeronly-arch-base-latest-master-py3
- arch-base-latest-master-py3
# - archive-gentoo-stage3-latest-master-py3
# - package-gentoo-stage3-latest-master-py3
# - repo-gentoo-stage3-latest-master-py3
# - clean-gentoo-stage3-latest-master-py3
# - composeclean-gentoo-stage3-latest-master-py3
# - dockeronly-gentoo-stage3-latest-master-py3
# - gentoo-stage3-latest-master-py3
- archive-gentoo-stage3-systemd-master-py3
# - package-gentoo-stage3-systemd-master-py3
# - repo-gentoo-stage3-systemd-master-py3
# - clean-gentoo-stage3-systemd-master-py3
# - composeclean-gentoo-stage3-systemd-master-py3
# - dockeronly-gentoo-stage3-systemd-master-py3
# - gentoo-stage3-systemd-master-py3
# - archive-almalinux-8-master-py3
# - package-almalinux-8-master-py3
# - repo-almalinux-8-master-py3
# - clean-almalinux-8-master-py3
# - composeclean-almalinux-8-master-py3
# - dockeronly-almalinux-8-master-py3
- almalinux-8-master-py3
# - archive-rockylinux-8-master-py3
# - package-rockylinux-8-master-py3
# - repo-rockylinux-8-master-py3
# - clean-rockylinux-8-master-py3
# - composeclean-rockylinux-8-master-py3
# - dockeronly-rockylinux-8-master-py3
- rockylinux-8-master-py3
# - archive-debian-11-3004-1-py3
# - archive-debian-10-3004-1-py3
# - archive-debian-9-3004-1-py3
# - archive-ubuntu-2204-3004-1-py3
# - archive-ubuntu-2004-3004-1-py3
# - archive-ubuntu-1804-3004-1-py3
# - archive-centos-stream8-3004-1-py3
# - archive-centos-7-3004-1-py3
# - archive-fedora-36-3004-1-py3
# - archive-fedora-35-3004-1-py3
# - archive-amazonlinux-2-3004-1-py3
# - archive-oraclelinux-8-3004-1-py3
# - archive-oraclelinux-7-3004-1-py3
# - archive-arch-base-latest-3004-1-py3
# - archive-gentoo-stage3-latest-3004-1-py3
# - archive-gentoo-stage3-systemd-3004-1-py3
# - archive-almalinux-8-3004-1-py3
# - archive-rockylinux-8-3004-1-py3
# - archive-opensuse-leap-153-3004-0-py3
# - archive-opensuse-tmbl-latest-3004-0-py3
# - archive-debian-10-3003-4-py3
# - archive-debian-9-3003-4-py3
# - archive-ubuntu-2004-3003-4-py3
# - archive-ubuntu-1804-3003-4-py3
# - archive-centos-stream8-3003-4-py3
# - archive-centos-7-3003-4-py3
# - archive-amazonlinux-2-3003-4-py3
# - archive-oraclelinux-8-3003-4-py3
# - archive-oraclelinux-7-3003-4-py3
# - archive-almalinux-8-3003-4-py3
steps:
- name: 'Check out code'
uses: 'actions/checkout@v2'
- name: 'Set up Bundler cache'
uses: 'actions/cache@v1'
with:
path: 'vendor/bundle'
key: "${{ runner.os }}-gems-${{ hashFiles('**/Gemfile.lock') }}"
restore-keys: "${{ runner.os }}-gems-"
- name: 'Install Bundler'
run: |
sudo gem install bundler \
-v "$(grep -A 1 "BUNDLED WITH" Gemfile.lock | tail -n 1)" \
--quiet --no-document
- name: 'Run Bundler'
run: |
ruby --version
bundle config path vendor/bundle
bundle install --jobs 4 --retry 3
- name: 'Run Test Kitchen'
run: 'bundle exec kitchen verify ${{ matrix.instance }}'
env:
CHEF_LICENSE: 'accept-no-persist'
12 changes: 12 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,9 @@ celerybeat-schedule
venv/
ENV/

# visual studio
.vs/

# Spyder project settings
.spyderproject
.spyproject
Expand Down Expand Up @@ -120,3 +123,12 @@ docs/*.md
Dockerfile.*_*
ignore/
tmp/

# `salt-formula` -- Vagrant Specific files
.vagrant
top.sls
!test/salt/pillar/top.sls

# `suricata-formula` -- Platform binaries
*.rpm
*.deb
96 changes: 96 additions & 0 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,96 @@
# -*- coding: utf-8 -*-
# vim: ft=yaml
---
###############################################################################
# Define all YAML node anchors
###############################################################################
.node_anchors:
# `only` (also used for `except` where applicable)
only_branch_master_parent_repo: &only_branch_master_parent_repo
- 'master@saltstack-formulas/docker-formula'
# `stage`
stage_lint: &stage_lint 'lint'
stage_release: &stage_release 'release'
# `image`
image_commitlint: &image_commitlint 'myii/ssf-commitlint:11'
image_precommit: &image_precommit
name: 'myii/ssf-pre-commit:2.9.2'
entrypoint: ['/bin/bash', '-c']
image_rubocop: &image_rubocop 'pipelinecomponents/rubocop:latest'
image_semantic-release: &image_semanticrelease 'myii/ssf-semantic-release:15.14'

###############################################################################
# Define stages and global variables
###############################################################################
stages:
- *stage_lint
- *stage_release

###############################################################################
# `lint` stage: `commitlint`, `pre-commit` & `rubocop` (latest, failure allowed)
###############################################################################
commitlint:
stage: *stage_lint
image: *image_commitlint
script:
# Add `upstream` remote to get access to `upstream/master`
- 'git remote add upstream
https://gitlab.com/saltstack-formulas/docker-formula.git'
- 'git fetch --all'
# Set default commit hashes for `--from` and `--to`
- 'export COMMITLINT_FROM="$(git merge-base upstream/master HEAD)"'
- 'export COMMITLINT_TO="${CI_COMMIT_SHA}"'
# `coqbot` adds a merge commit to test PRs on top of the latest commit in
# the repo; amend this merge commit message to avoid failure
- |
if [ "${GITLAB_USER_LOGIN}" = "coqbot" ] \
&& [ "${CI_COMMIT_BRANCH}" != "master" ]; then
git commit --amend -m \
'chore: reword coqbot merge commit message for commitlint'
export COMMITLINT_TO=HEAD
fi
# Run `commitlint`
- 'commitlint --from "${COMMITLINT_FROM}"
--to "${COMMITLINT_TO}"
--verbose'

pre-commit:
stage: *stage_lint
image: *image_precommit
# https://pre-commit.com/#gitlab-ci-example
variables:
PRE_COMMIT_HOME: '${CI_PROJECT_DIR}/.cache/pre-commit'
cache:
key: '${CI_JOB_NAME}'
paths:
- '${PRE_COMMIT_HOME}'
script:
- 'pre-commit run --all-files --color always --verbose'

# Use a separate job for `rubocop` other than the one potentially run by `pre-commit`
# - The `pre-commit` check will only be available for formulas that pass the default
# `rubocop` check -- and must continue to do so
# - This job is allowed to fail, so can be used for all formulas
# - Furthermore, this job uses all of the latest `rubocop` features & cops,
# which will help when upgrading the `rubocop` linter used in `pre-commit`
rubocop:
allow_failure: true
stage: *stage_lint
image: *image_rubocop
script:
- 'rubocop -d -P -S --enable-pending-cops'

###############################################################################
# `release` stage: `semantic-release`
###############################################################################
semantic-release:
only: *only_branch_master_parent_repo
stage: *stage_release
image: *image_semanticrelease
variables:
MAINTAINER_TOKEN: '${GH_TOKEN}'
script:
# Update `AUTHORS.md`
- '${HOME}/go/bin/maintainer contributor'
# Run `semantic-release`
- 'semantic-release'
Loading