mirror of
https://github.com/certbot/certbot.git
synced 2026-06-08 16:22:18 -04:00
Reorganize pipelines to refer to unitary stages
This commit is contained in:
parent
68950c055a
commit
9bdd9b816c
8 changed files with 65 additions and 75 deletions
|
|
@ -6,9 +6,5 @@ trigger:
|
|||
- test-*
|
||||
pr: none
|
||||
|
||||
jobs:
|
||||
# Any addition here should be reflected in the advanced and release pipelines.
|
||||
# It is advised to declare all jobs here as templates to improve maintainability.
|
||||
- template: templates/jobs/standard-tests-jobs.yml
|
||||
- template: templates/jobs/extended-tests-jobs.yml
|
||||
- template: templates/jobs/packaging-jobs.yml
|
||||
stages:
|
||||
- template: templates/stages/test-and-package-stage.yml
|
||||
|
|
|
|||
|
|
@ -12,14 +12,6 @@ schedules:
|
|||
always: true
|
||||
|
||||
stages:
|
||||
- stage: Test_Package
|
||||
jobs:
|
||||
# Any addition here should be reflected in the advanced-test and release pipelines.
|
||||
# It is advised to declare all jobs here as templates to improve maintainability.
|
||||
- template: templates/jobs/standard-tests-jobs.yml
|
||||
- template: templates/jobs/extended-tests-jobs.yml
|
||||
- template: templates/jobs/packaging-jobs.yml
|
||||
- stage: Deploy
|
||||
jobs:
|
||||
- template: templates/jobs/deployment-jobs.yml
|
||||
- template: templates/stages/test-and-package-stage.yml
|
||||
- template: templates/stages/deploy-stage.yml
|
||||
- template: templates/stages/notify-failure-stage.yml
|
||||
|
|
|
|||
|
|
@ -6,15 +6,7 @@ trigger:
|
|||
pr: none
|
||||
|
||||
stages:
|
||||
- stage: Test_Package
|
||||
jobs:
|
||||
# Any addition here should be reflected in the advanced and advanced-test pipelines.
|
||||
# It is advised to declare all jobs here as templates to improve maintainability.
|
||||
- template: templates/jobs/standard-tests-jobs.yml
|
||||
- template: templates/jobs/extended-tests-jobs.yml
|
||||
- template: templates/jobs/packaging-jobs.yml
|
||||
- template: templates/jobs/changelog-jobs.yml
|
||||
- stage: Deploy
|
||||
jobs:
|
||||
- template: templates/jobs/deployment-jobs.yml
|
||||
- template: templates/stages/test-and-package-stage.yml
|
||||
- template: templates/stages/changelog-stage.yml
|
||||
- template: templates/stages/deploy-stage.yml
|
||||
- template: templates/stages/notify-failure-stage.yml
|
||||
|
|
|
|||
|
|
@ -1,14 +0,0 @@
|
|||
jobs:
|
||||
- job: changelog
|
||||
pool:
|
||||
vmImage: vs2017-win2016
|
||||
steps:
|
||||
- bash: |
|
||||
CERTBOT_VERSION="$(cd certbot && python -c "import certbot; print(certbot.__version__)" && cd ~-)"
|
||||
"${BUILD_REPOSITORY_LOCALPATH}\tools\extract_changelog.py" "${CERTBOT_VERSION}" >> "${BUILD_ARTIFACTSTAGINGDIRECTORY}/release_notes.md"
|
||||
displayName: Prepare changelog
|
||||
- task: PublishPipelineArtifact@1
|
||||
inputs:
|
||||
path: $(Build.ArtifactStagingDirectory)
|
||||
artifact: changelog
|
||||
displayName: Publish changelog
|
||||
|
|
@ -1,34 +0,0 @@
|
|||
jobs:
|
||||
- job: publish_snap
|
||||
strategy:
|
||||
matrix:
|
||||
amd64:
|
||||
ARCH: amd64
|
||||
arm64:
|
||||
ARCH: arm64
|
||||
armhf:
|
||||
ARCH: armhf
|
||||
pool:
|
||||
vmImage: ubuntu-18.04
|
||||
variables:
|
||||
- group: certbot-common
|
||||
steps:
|
||||
- bash: |
|
||||
sudo apt-get update
|
||||
sudo apt-get install -y --no-install-recommends snap
|
||||
sudo snap install --classic snapcraft
|
||||
displayName: Install dependencies
|
||||
- task: DownloadPipelineArtifact@2
|
||||
inputs:
|
||||
artifact: snap-$(arch)
|
||||
path: $(Build.SourcesDirectory)/snap
|
||||
displayName: Retrieve Certbot snap
|
||||
- task: DownloadSecureFile@1
|
||||
name: snapcraftCfg
|
||||
inputs:
|
||||
secureFile: snapcraft.cfg
|
||||
- bash: |
|
||||
mkdir -p .snapcraft
|
||||
ln -s $(snapcraftCfg.secureFilePath) .snapcraft/snapcraft.cfg
|
||||
snapcraft push --release=edge snap/*.snap
|
||||
displayName: Publish to Snap store
|
||||
16
.azure-pipelines/templates/stages/changelog-stage.yml
Normal file
16
.azure-pipelines/templates/stages/changelog-stage.yml
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
stages:
|
||||
- stage: Changelog
|
||||
jobs:
|
||||
- job: prepare
|
||||
pool:
|
||||
vmImage: vs2017-win2016
|
||||
steps:
|
||||
- bash: |
|
||||
CERTBOT_VERSION="$(cd certbot && python -c "import certbot; print(certbot.__version__)" && cd ~-)"
|
||||
"${BUILD_REPOSITORY_LOCALPATH}\tools\extract_changelog.py" "${CERTBOT_VERSION}" >> "${BUILD_ARTIFACTSTAGINGDIRECTORY}/release_notes.md"
|
||||
displayName: Prepare changelog
|
||||
- task: PublishPipelineArtifact@1
|
||||
inputs:
|
||||
path: $(Build.ArtifactStagingDirectory)
|
||||
artifact: changelog
|
||||
displayName: Publish changelog
|
||||
36
.azure-pipelines/templates/stages/deploy-stage.yml
Normal file
36
.azure-pipelines/templates/stages/deploy-stage.yml
Normal file
|
|
@ -0,0 +1,36 @@
|
|||
stages:
|
||||
- stage: Deploy
|
||||
jobs:
|
||||
- job: publish_snap
|
||||
strategy:
|
||||
matrix:
|
||||
amd64:
|
||||
ARCH: amd64
|
||||
arm64:
|
||||
ARCH: arm64
|
||||
armhf:
|
||||
ARCH: armhf
|
||||
pool:
|
||||
vmImage: ubuntu-18.04
|
||||
variables:
|
||||
- group: certbot-common
|
||||
steps:
|
||||
- bash: |
|
||||
sudo apt-get update
|
||||
sudo apt-get install -y --no-install-recommends snap
|
||||
sudo snap install --classic snapcraft
|
||||
displayName: Install dependencies
|
||||
- task: DownloadPipelineArtifact@2
|
||||
inputs:
|
||||
artifact: snap-$(arch)
|
||||
path: $(Build.SourcesDirectory)/snap
|
||||
displayName: Retrieve Certbot snap
|
||||
- task: DownloadSecureFile@1
|
||||
name: snapcraftCfg
|
||||
inputs:
|
||||
secureFile: snapcraft.cfg
|
||||
- bash: |
|
||||
mkdir -p .snapcraft
|
||||
ln -s $(snapcraftCfg.secureFilePath) .snapcraft/snapcraft.cfg
|
||||
snapcraft push --release=edge snap/*.snap
|
||||
displayName: Publish to Snap store
|
||||
|
|
@ -0,0 +1,6 @@
|
|||
stages:
|
||||
- stage: TestAndPackage
|
||||
jobs:
|
||||
- template: templates/jobs/standard-tests-jobs.yml
|
||||
- template: templates/jobs/extended-tests-jobs.yml
|
||||
- template: templates/jobs/packaging-jobs.yml
|
||||
Loading…
Reference in a new issue