diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-05-14 20:03:01 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-05-14 20:03:01 +0000 |
commit | a453ac31f3428614cceb99027f8efbdb9258a40b (patch) | |
tree | f61f87408f32a8511cbd91799f9cececb53e0374 /collections-debian-merged/ansible_collections/google/cloud/.github | |
parent | Initial commit. (diff) | |
download | ansible-a453ac31f3428614cceb99027f8efbdb9258a40b.tar.xz ansible-a453ac31f3428614cceb99027f8efbdb9258a40b.zip |
Adding upstream version 2.10.7+merged+base+2.10.8+dfsg.upstream/2.10.7+merged+base+2.10.8+dfsgupstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'collections-debian-merged/ansible_collections/google/cloud/.github')
5 files changed, 206 insertions, 0 deletions
diff --git a/collections-debian-merged/ansible_collections/google/cloud/.github/workflows/automationhub.yml b/collections-debian-merged/ansible_collections/google/cloud/.github/workflows/automationhub.yml new file mode 100644 index 00000000..969904ca --- /dev/null +++ b/collections-debian-merged/ansible_collections/google/cloud/.github/workflows/automationhub.yml @@ -0,0 +1,25 @@ +name: Upload release to Automation Hub + +on: + release: + types: [created] + +jobs: + deploy: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v1 + - name: Set up Python + uses: actions/setup-python@v1 + with: + python-version: '3.x' + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install ansible + - name: Build and publish + env: + ANSIBLE_AUTOMATION_HUB_API_KEY: ${{ secrets.ANSIBLE_AUTOMATION_HUB_API_KEY }} + run: | + ansible-galaxy collection build . + ansible-galaxy collection publish *.tar.gz --api-key=$ANSIBLE_GALAXY_API_KEY -s=https://cloud.redhat.com/api/automation-hub/ diff --git a/collections-debian-merged/ansible_collections/google/cloud/.github/workflows/gcloud.yml b/collections-debian-merged/ansible_collections/google/cloud/.github/workflows/gcloud.yml new file mode 100644 index 00000000..341fb85d --- /dev/null +++ b/collections-debian-merged/ansible_collections/google/cloud/.github/workflows/gcloud.yml @@ -0,0 +1,62 @@ +name: "google.cloud.gcloud" +on: + push: + paths: + - 'roles/gcloud/**' + - '.github/workflows/gcloud.yml' + - 'molecule/gcloud/**' + pull_request: + paths: + - 'roles/gcloud/**' + - '.github/workflows/gcloud.yml' + - 'molecule/gcloud/**' +jobs: + molecule: + runs-on: ubuntu-18.04 + env: + PY_COLORS: 1 + ANSIBLE_FORCE_COLOR: 1 + strategy: + fail-fast: true + matrix: + molecule_playbook: + - archive_playbook.yml + - package_playbook.yml + molecule_distro: + - distro: centos:7 + command: /usr/sbin/init + - distro: centos:8 + command: /usr/sbin/init + - distro: ubuntu:16.04 + command: /sbin/init + - distro: ubuntu:18.04 + command: /lib/systemd/systemd + - distro: debian:9 + command: /lib/systemd/systemd + collection_role: + - gcloud + steps: + - name: Check out code + uses: actions/checkout@v1 + with: + path: ansible_collections/google/cloud + + - name: Set up Python 3.8 + uses: actions/setup-python@v1 + with: + python-version: 3.8 + + - name: Install dependencies + run: | + sudo apt install docker + python -m pip install --upgrade pip + pip install molecule yamllint ansible-lint docker + + - name: Run role test + run: >- + molecule --version && + ansible --version && + MOLECULE_COMMAND=${{ matrix.molecule_distro.command }} + MOLECULE_DISTRO=${{ matrix.molecule_distro.distro }} + MOLECULE_PLAYBOOK=${{ matrix.molecule_playbook }} + molecule --debug test -s ${{ matrix.collection_role }} diff --git a/collections-debian-merged/ansible_collections/google/cloud/.github/workflows/gcsfuse.yml b/collections-debian-merged/ansible_collections/google/cloud/.github/workflows/gcsfuse.yml new file mode 100644 index 00000000..75a610ef --- /dev/null +++ b/collections-debian-merged/ansible_collections/google/cloud/.github/workflows/gcsfuse.yml @@ -0,0 +1,52 @@ +name: "google.cloud.gcsfuse" +on: + push: + paths: + - roles/gcsfuse/** + - .github/workflows/gcsfuse.yml + pull_request: + paths: + - roles/gcsfuse/** + - .github/workflows/gcsfuse.yml +jobs: + gcsfuse: + runs-on: ubuntu-18.04 + env: + PY_COLORS: 1 + ANSIBLE_FORCE_COLOR: 1 + strategy: + fail-fast: false + matrix: + molecule_distro: + - distro: ubuntu:16.04 + command: /sbin/init + - distro: ubuntu:18.04 + command: /lib/systemd/systemd + - distro: debian:9 + command: /lib/systemd/systemd + collection_role: + - gcsfuse + steps: + - name: Check out code + uses: actions/checkout@v1 + with: + path: ansible_collections/google/cloud + + - name: Set up Python 3.8 + uses: actions/setup-python@v1 + with: + python-version: 3.8 + + - name: Install dependencies + run: | + sudo apt install docker + python -m pip install --upgrade pip + pip install molecule yamllint ansible-lint docker + + - name: Run role test + run: >- + molecule --version && + ansible --version && + MOLECULE_COMMAND=${{ matrix.molecule_distro.command }} + MOLECULE_DISTRO=${{ matrix.molecule_distro.distro }} + molecule --debug test -s ${{ matrix.collection_role }} diff --git a/collections-debian-merged/ansible_collections/google/cloud/.github/workflows/integration.yml b/collections-debian-merged/ansible_collections/google/cloud/.github/workflows/integration.yml new file mode 100644 index 00000000..5d5d9e9f --- /dev/null +++ b/collections-debian-merged/ansible_collections/google/cloud/.github/workflows/integration.yml @@ -0,0 +1,42 @@ +name: Ansible Integration Test Runner + +on: + schedule: + # * is a special character in YAML so you have to quote this string + - cron: '0 1 * * *' + +jobs: + build: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v1 + - name: Set up Python 3.7 + uses: actions/setup-python@v1 + with: + python-version: 3.7 + - name: Install ansible and collection dependencies + run: | + python -m pip install --upgrade pip + pip install ansible + pip install -r requirements.txt + - name: Build and install collection + run: | + ansible-galaxy collection build . + ansible-galaxy collection install *.gz + - name: Add service account file + env: + SERVICE_ACCOUNT_FILE: ${{ secrets.SERVICE_ACCOUNT_FILE }} + run: | + echo "$SERVICE_ACCOUNT_FILE" > /tmp/service_account.json + - name: Add test template + env: + TEST_SETTINGS_TEMPLATE: ${{ secrets.TEST_SETTINGS_TEMPLATE }} + run: | + pushd ~/.ansible/collections/ansible_collections/google/cloud + echo "$TEST_SETTINGS_TEMPLATE" > tests/integration/cloud-config-gcp.ini + - name: Run the tests + run: | + pushd ~/.ansible/collections/ansible_collections/google/cloud + ansible-test integration -v --allow-unsupported --continue-on-error $(find tests/integration/targets -name "gcp*" -type d -printf "%P ") diff --git a/collections-debian-merged/ansible_collections/google/cloud/.github/workflows/pythonpublish.yml b/collections-debian-merged/ansible_collections/google/cloud/.github/workflows/pythonpublish.yml new file mode 100644 index 00000000..0318edfc --- /dev/null +++ b/collections-debian-merged/ansible_collections/google/cloud/.github/workflows/pythonpublish.yml @@ -0,0 +1,25 @@ +name: Upload release to Galaxy + +on: + release: + types: [created] + +jobs: + deploy: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v1 + - name: Set up Python + uses: actions/setup-python@v1 + with: + python-version: '3.x' + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install ansible + - name: Build and publish + env: + ANSIBLE_GALAXY_API_KEY: ${{ secrets.ANSIBLE_GALAXY_API_KEY }} + run: | + ansible-galaxy collection build . + ansible-galaxy collection publish *.tar.gz --api-key $ANSIBLE_GALAXY_API_KEY |