This repository has been archived by the owner on Jan 30, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 81
91 lines (90 loc) · 2.75 KB
/
release.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
---
name: Pulp Release CI
on:
push:
tags:
- '*'
jobs:
molecule:
runs-on: ubuntu-latest
strategy:
fail-fast: false
# Testing different python versions because of
# https://pulp.plan.io/issues/5768#note-17
matrix:
include:
- test_type: release-static
ansible: "2.9"
python: "2.7"
toxpy: "27"
- test_type: packages-static
ansible: "2.10"
python: "3.7"
toxpy: "37"
- test_type: release-dynamic
ansible: "2.10"
python: "3.8"
toxpy: "38"
- test_type: packages-dynamic
ansible: "2.9"
python: "3.7"
toxpy: "37"
- test_type: release-upgrade
ansible: "2.9"
python: "2.7"
toxpy: "27"
- test_type: packages-upgrade
ansible: "2.10"
python: "3.6"
toxpy: "36"
steps:
- uses: actions/checkout@v2.3.1
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python }}
- name: Install tox
run: |
pip install --upgrade pip
pip install tox
- name: Pulling images for PyPI upgrades
if: matrix.test_type == 'release-upgrade' || matrix.test_type == 'source-upgrade'
run: |
docker pull quay.io/pulp/pulp-ci-dbuster:3.0.0
docker pull quay.io/pulp/pulp_rpm-ci-f33:3.9.0
docker pull quay.io/pulp/pulp_rpm-ci-c7:3.1.0
- name: Pulling images for distro packages upgrades
if: matrix.test_type == 'packages-upgrade'
run: |
docker pull quay.io/pulp/pulp-ci-pkgs-c7:3.3.1
docker pull quay.io/pulp/pulp-ci-pkgs-c8:3.3.1
- name: Run tox
run: tox -e "py${{ matrix.toxpy }}-ansible${{ matrix.ansible }}-${{ matrix.test_type }}"
env:
PY_COLORS: '1'
ANSIBLE_FORCE_COLOR: '1'
shell: bash
release:
runs-on: ubuntu-latest
needs: molecule
if: github.repository == 'pulp/pulp_installer'
steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: "3.8"
- name: Setting secrets
run: python3 .github/workflows/scripts/secrets.py "$SECRETS_CONTEXT"
env:
SECRETS_CONTEXT: ${{ toJson(secrets) }}
- name: Install Ansible
run: pip install --upgrade ansible
- name: Build Ansible Collection
run: |
make vendor
make dist
- name: Deploy Ansible Collection
run: make publish GALAXY_API_KEY=${{ secrets.GALAXY_API_KEY }}
- name: Update Redmine
run: bash .ci/scripts/update_redmine.sh