Skip to content

Commit c57ce85

Browse files
authored
Merge pull request #2125 from puppetlabs/pdksync_remove_puppet5
pdksync - Remove Puppet 5 from testing and bump minimal version to 6.0.0
2 parents 8a67aa4 + a814310 commit c57ce85

File tree

5 files changed

+85
-45
lines changed

5 files changed

+85
-45
lines changed

.github/workflows/auto_release.yml

Lines changed: 81 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,81 @@
1+
name: "Auto release"
2+
3+
on:
4+
schedule:
5+
- cron: '0 3 * * 6'
6+
workflow_dispatch:
7+
8+
env:
9+
HONEYCOMB_WRITEKEY: 7f3c63a70eecc61d635917de46bea4e6
10+
HONEYCOMB_DATASET: litmus tests
11+
CHANGELOG_GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
12+
13+
jobs:
14+
auto_release:
15+
name: "Automatic release prep"
16+
runs-on: ubuntu-20.04
17+
18+
steps:
19+
- name: "Honeycomb: Start recording"
20+
uses: puppetlabs/kvrhdn-gha-buildevents@pdk-templates-v1
21+
with:
22+
apikey: ${{ env.HONEYCOMB_WRITEKEY }}
23+
dataset: ${{ env.HONEYCOMB_DATASET }}
24+
job-status: ${{ job.status }}
25+
26+
- name: "Honeycomb: start first step"
27+
run: |
28+
echo STEP_ID="auto-release" >> $GITHUB_ENV
29+
echo STEP_START=$(date +%s) >> $GITHUB_ENV
30+
31+
- name: "Checkout Source"
32+
if: ${{ github.repository_owner == 'puppetlabs' }}
33+
uses: actions/checkout@v2
34+
with:
35+
fetch-depth: 0
36+
persist-credentials: false
37+
38+
- name: "PDK Release prep"
39+
uses: docker://puppet/pdk:nightly
40+
with:
41+
args: 'release prep --force'
42+
env:
43+
CHANGELOG_GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
44+
45+
- name: "Get Version"
46+
if: ${{ github.repository_owner == 'puppetlabs' }}
47+
id: gv
48+
run: |
49+
echo "::set-output name=ver::$(jq --raw-output .version metadata.json)"
50+
51+
- name: "Commit changes"
52+
if: ${{ github.repository_owner == 'puppetlabs' }}
53+
run: |
54+
git config --local user.email "${{ github.repository_owner }}@users.noreply.github.com"
55+
git config --local user.name "GitHub Action"
56+
git add .
57+
git commit -m "Release prep v${{ steps.gv.outputs.ver }}"
58+
59+
- name: Create Pull Request
60+
id: cpr
61+
uses: puppetlabs/peter-evans-create-pull-request@v3
62+
if: ${{ github.repository_owner == 'puppetlabs' }}
63+
with:
64+
token: ${{ secrets.GITHUB_TOKEN }}
65+
commit-message: "Release prep v${{ steps.gv.outputs.ver }}"
66+
branch: "release-prep"
67+
delete-branch: true
68+
title: "Release prep v${{ steps.gv.outputs.ver }}"
69+
body: "Automated release-prep through [pdk-templates](https://github.com/puppetlabs/pdk-templates/blob/main/moduleroot/.github/workflows/auto_release.yml.erb)"
70+
labels: "maintenance"
71+
72+
- name: PR outputs
73+
if: ${{ github.repository_owner == 'puppetlabs' }}
74+
run: |
75+
echo "Pull Request Number - ${{ steps.cpr.outputs.pull-request-number }}"
76+
echo "Pull Request URL - ${{ steps.cpr.outputs.pull-request-url }}"
77+
78+
- name: "Honeycomb: Record finish step"
79+
if: ${{ always() }}
80+
run: |
81+
buildevents step $TRACE_ID $STEP_ID $STEP_START 'Finished auto release workflow'

.sync.yml

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,6 @@
2424
- puppet6
2525
provision_list:
2626
- travis_ub_6
27-
- collection:
28-
puppet_collection:
29-
- puppet5
30-
provision_list:
31-
- travis_ub_5
3227
simplecov: true
3328
notifications:
3429
slack:
@@ -50,6 +45,8 @@ spec/spec_helper.rb:
5045
unmanaged: false
5146
.github/workflows/pr_test.yml:
5247
unmanaged: false
48+
.github/workflows/auto_release.yml:
49+
unmanaged: false
5350
Rakefile:
5451
extras:
5552
"FastGettext.default_text_domain = 'default-text-domain'"

.travis.yml

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -38,17 +38,6 @@ jobs:
3838
script: ["travis_wait 45 bundle exec rake litmus:acceptance:parallel"]
3939
services: docker
4040
stage: acceptance
41-
- before_script:
42-
- "bundle exec rake 'litmus:provision_list[travis_ub_5]'"
43-
- "bundle exec rake 'litmus:install_agent[puppet5]'"
44-
- "bundle exec rake litmus:install_module"
45-
env:
46-
PLATFORMS: travis_ub_5_puppet5
47-
BUNDLE_WITH: system_tests
48-
rvm: 2.5.7
49-
script: ["travis_wait 45 bundle exec rake litmus:acceptance:parallel"]
50-
services: docker
51-
stage: acceptance
5241
- before_script:
5342
- "bundle exec rake 'litmus:provision_list[travis_deb]'"
5443
- "bundle exec rake 'litmus:install_agent[puppet6]'"

metadata.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,11 +76,11 @@
7676
"requirements": [
7777
{
7878
"name": "puppet",
79-
"version_requirement": ">= 5.5.10 < 8.0.0"
79+
"version_requirement": ">= 6.0.0 < 8.0.0"
8080
}
8181
],
8282
"description": "Module for Apache configuration",
8383
"pdk-version": "1.18.1",
8484
"template-url": "https://github.com/puppetlabs/pdk-templates.git#main",
85-
"template-ref": "heads/main-0-g2bf2de6"
85+
"template-ref": "heads/main-0-g44cc7ed"
8686
}

provision.yaml

Lines changed: 0 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,6 @@ travis_deb:
1414
- litmusimage/debian:8
1515
- litmusimage/debian:9
1616
- litmusimage/debian:10
17-
travis_ub_5:
18-
provisioner: docker
19-
images:
20-
- litmusimage/ubuntu:14.04
21-
- litmusimage/ubuntu:16.04
22-
- litmusimage/ubuntu:18.04
2317
travis_ub_6:
2418
provisioner: docker
2519
images:
@@ -37,27 +31,6 @@ travis_el8:
3731
provisioner: docker
3832
images:
3933
- litmusimage/centos:8
40-
release_checks_5:
41-
provisioner: abs
42-
images:
43-
- redhat-6-x86_64
44-
- redhat-7-x86_64
45-
- redhat-8-x86_64
46-
- centos-6-x86_64
47-
- centos-7-x86_64
48-
- centos-8-x86_64
49-
- oracle-6-x86_64
50-
- oracle-7-x86_64
51-
- scientific-6-x86_64
52-
- scientific-7-x86_64
53-
- debian-8-x86_64
54-
- debian-9-x86_64
55-
- debian-10-x86_64
56-
- ubuntu-1404-x86_64
57-
- ubuntu-1604-x86_64
58-
- ubuntu-1804-x86_64
59-
- sles-12-x86_64
60-
- sles-15-x86_64
6134
release_checks_6:
6235
provisioner: abs
6336
images:

0 commit comments

Comments
 (0)