Skip to content

Commit

Permalink
Fix CI (#15)
Browse files Browse the repository at this point in the history
  • Loading branch information
ruzickap authored Nov 19, 2020
1 parent 74becd9 commit 0be03a9
Show file tree
Hide file tree
Showing 3 changed files with 41 additions and 55 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/molecule.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ jobs:
run: sudo apt-get install -y python3-setuptools

- name: Install test dependencies
run: sudo -H pip3 install ansible-lint molecule docker yamllint
run: sudo -H pip3 install ansible-lint molecule[docker] docker yamllint

- name: Run tests
env:
Expand Down
40 changes: 40 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
---
# This workflow requires a GALAXY_API_KEY secret present in the GitHub
# repository or organization.
#
# See: https://github.com/marketplace/actions/publish-ansible-role-to-galaxy
# See: https://github.com/ansible/galaxy/issues/46

name: Release

on:
release:
types:
- published

defaults:
run:
working-directory: 'ruzickap.proxy_settings'

jobs:
release:
name: Release
runs-on: ubuntu-latest
steps:
- name: Check out the codebase.
uses: actions/checkout@v2
with:
path: 'ruzickap.proxy_settings'

- name: Set up Python 3.
uses: actions/setup-python@v2
with:
python-version: '3.x'

- name: Install Ansible.
run: pip3 install ansible-base

- name: Trigger a new import on Galaxy.
run: |
ansible-galaxy role import
--api-key ${{ secrets.GALAXY_API_KEY }} ${GITHUB_REPOSITORY%/*} ${GITHUB_REPOSITORY##*/}
54 changes: 0 additions & 54 deletions .travis.yml

This file was deleted.

0 comments on commit 0be03a9

Please sign in to comment.