Debian Codegraph @

ansible_collections/google/cloud/MAINTAINING.md

raw symbols SCIP
1 # Maintainer Documentation
2
3 ## See CONTRIBUTING.md for more tasks
4
5 [CONTRIBUTING.md](./CONTRIBUTING.md) contains more instructions that could
6 apply to contributors and not just maintainers (e.g. update ansible-core version).
7
8 ## CI GCP Project Configuration
9
10 To enable running integration tests, a test GCP project must be provided.
11
12 There is a Google-maintained CI project, `ansible-gcp-ci`, that is used for this purpose. For any questions or modification to this project, please contact a maintainer who is employed by Google.
13
14 ## Reviewing PRs
15
16 ### Merging PRs
17
18 Since running the full set of integration tests requires the usage of GCP
19 credentials which are stored as a secret, maintainers must verify that tests pass the integration test run that runs on push to the master branch after accepting a change.
20
21 ## Release Process
22
23 ### Overview
24
25 The process is as follows:
26
27 1. Update the version of the collection.
28 1. Update the changelog.
29 2. Create a GitHub release to tag the repo and begin the publishing process.
30
31 ### Steps
32
33 #### Update Collection Version
34
35 Modify the [galaxy.yaml](./galaxy.yml) file to the desired collection version:
36
37 ```yaml
38 version: {NEW_VERSION}
39 ```
40
41 Ansible collection versions [must follow SEMVER](https://docs.ansible.com/ansible/devel/dev_guide/developing_collections_distributing.html#collection-versions).
42
43 Alpha / beta releases are optional.
44
45 #### Update the changelog
46
47 Providing a valid [CHANGELOG.rst](./CHANGELOG.rst) is required for a certifiable
48 collection release.
49
50 Use the [antsibull-changelog](https://github.com/ansible-community/antsibull-changelog)
51 tool to generate the changelog:
52
53 ```sh
54 pip install antsibull-changelog
55 antsibull-changelog release
56 ```
57
58 This will remove all the changelog fragments from ./changelogs/fragments and
59 merge them into CHANGELOG.rst.
60
61 ### Send a PR and merge
62
63 Send a PR with these changes and merge them.
64
65 ### Create a new GitHub release
66
67 Creating
68
69 - [publish to Ansible Galaxy](./.github/workflows/pythonpublish.yml).
70
71 ### Publish to Automation Hub
72
73 *note*: As automation Hub only accepts production releases, this step
74 is only required for new full releases.
75
76 This step does not use GitHub actions, as API keys for Automation Hub
77 expire after 30 days of no use, and a maintainer may find themselves
78 refreshing tokens every time anyway.
79
80 Steps:
81
82 1. Build the package locally: `ansible-galaxy collection build .`
83 1. [Go to the Automation Hub my-namespaces page, then click on Google](https://console.redhat.com/ansible/automation-hub/repo/published/my-namespaces/google/)
84 1. Publish the package