Do not run Molecule CI/CD workflow when creating a new release (#354)

This commit is contained in:
Alessandro Fael Garcia 2020-12-23 18:04:38 +01:00 committed by GitHub
parent 5e918e61e2
commit 171e8300bb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 15 additions and 9 deletions

View File

@ -1,9 +1,7 @@
--- ---
name: Ansible Galaxy import name: Ansible Galaxy import
on: on:
push: release:
tags:
- '*'
jobs: jobs:
galaxy: galaxy:
name: Galaxy name: Galaxy
@ -15,7 +13,7 @@ jobs:
- name: Set up Python 3 - name: Set up Python 3
uses: actions/setup-python@v2 uses: actions/setup-python@v2
with: with:
python-version: '3.x' python-version: 3.x
- name: Install Ansible - name: Install Ansible
run: pip3 install ansible-base==2.10.3 run: pip3 install ansible-base==2.10.3

View File

@ -2,9 +2,13 @@
name: Molecule CI/CD name: Molecule CI/CD
on: on:
pull_request: pull_request:
branches:
- main
push: push:
branches: branches:
- main - main
ignore-tags:
- "*"
schedule: schedule:
- cron: "0 0 1 * *" - cron: "0 0 1 * *"
jobs: jobs:
@ -33,7 +37,7 @@ jobs:
- name: Set up Python 3 - name: Set up Python 3
uses: actions/setup-python@v2 uses: actions/setup-python@v2
with: with:
python-version: '3.x' python-version: 3.x
- name: Install Molecule dependencies - name: Install Molecule dependencies
run: | run: |
@ -41,14 +45,14 @@ jobs:
pip3 install ansible==2.10.3 pip3 install ansible==2.10.3
pip3 install ansible-lint==4.3.7 pip3 install ansible-lint==4.3.7
pip3 install yamllint==1.25.0 pip3 install yamllint==1.25.0
pip3 install 'molecule[docker]'==3.2.1 pip3 install "molecule[docker]"==3.2.1
pip3 install docker==4.4.0 pip3 install docker==4.4.0
- name: Run Molecule tests - name: Run Molecule tests
run: molecule test -s ${{ matrix.scenario }} run: molecule test -s ${{ matrix.scenario }}
if: contains(${{ matrix.scenario }}, 'plus') && !(github.event_name == 'pull_request' && github.event.pull_request.head.repo.fork) if: contains(${{ matrix.scenario }}, "plus") && !(github.event_name == "pull_request" && github.event.pull_request.head.repo.fork)
env: env:
PY_COLORS: '1' PY_COLORS: "1"
ANSIBLE_FORCE_COLOR: '1' ANSIBLE_FORCE_COLOR: "1"
NGINX_CRT: ${{ secrets.NGINX_CRT }} NGINX_CRT: ${{ secrets.NGINX_CRT }}
NGINX_KEY: ${{ secrets.NGINX_KEY }} NGINX_KEY: ${{ secrets.NGINX_KEY }}

View File

@ -6,6 +6,10 @@ BREAKING CHANGES:
**The NGINX configuration functionalities included in this role have been removed as of release 0.19.0.** There now is a separate role to manage and create NGINX configurations available [here](https://github.com/nginxinc/ansible-role-nginx-config). Any new issues or PRs related to configuring NGINX should be submitted in the new NGINX configuration Ansible role repository. New issues or PRs related to configuring NGINX submitted in this repository will not be worked on. **The NGINX configuration functionalities included in this role have been removed as of release 0.19.0.** There now is a separate role to manage and create NGINX configurations available [here](https://github.com/nginxinc/ansible-role-nginx-config). Any new issues or PRs related to configuring NGINX should be submitted in the new NGINX configuration Ansible role repository. New issues or PRs related to configuring NGINX submitted in this repository will not be worked on.
ENHANCEMENTS:
The GitHub actions Molecule CI/CD workflow is no longer run on a new release (this is not necessary since it already runs on every push).
## 0.18.2 (December 22, 2020) ## 0.18.2 (December 22, 2020)
ENHANCEMENTS: ENHANCEMENTS: