Mohammed Naser | eb257cb | 2024-04-10 21:14:24 -0400 | [diff] [blame] | 1 | # Copyright (c) 2024 VEXXHOST, Inc. |
| 2 | # |
| 3 | # Licensed under the Apache License, Version 2.0 (the "License"); you may |
| 4 | # not use this file except in compliance with the License. You may obtain |
| 5 | # a copy of the License at |
| 6 | # |
| 7 | # http://www.apache.org/licenses/LICENSE-2.0 |
| 8 | # |
| 9 | # Unless required by applicable law or agreed to in writing, software |
| 10 | # distributed under the License is distributed on an "AS IS" BASIS, WITHOUT |
| 11 | # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the |
| 12 | # License for the specific language governing permissions and limitations |
| 13 | # under the License. |
| 14 | |
| 15 | - name: Build collection |
| 16 | hosts: all |
| 17 | tasks: |
| 18 | - name: Pin all image digests |
| 19 | ansible.builtin.include_role: |
| 20 | name: tox |
| 21 | vars: |
| 22 | tox_envlist: pin-digests |
Mohammed Naser | 5d4d441 | 2024-05-24 19:36:35 +0200 | [diff] [blame] | 23 | when: |
| 24 | - zuul.pipeline == 'publish' |
Mohammed Naser | eb257cb | 2024-04-10 21:14:24 -0400 | [diff] [blame] | 25 | |
| 26 | - name: Print out the new image manifest file |
| 27 | ansible.builtin.command: | |
| 28 | cat {{ zuul.project.src_dir }}/roles/defaults/vars/main.yml |
| 29 | |
| 30 | - name: Build Ansible collection |
| 31 | ansible.builtin.shell: | |
| 32 | {{ ansible_galaxy_executable }} collection build -vvv . |
| 33 | args: |
| 34 | chdir: '{{ zuul.project.src_dir }}' |