Compare commits
9 Commits
test-upgra
...
split-dock
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
f7eb5b79fc | ||
|
|
112e1e7ab9 | ||
|
|
c86ec104a2 | ||
|
|
423be6c388 | ||
|
|
ae7aef9db5 | ||
|
|
c2c3a9873a | ||
|
|
325f51aba5 | ||
|
|
d7386bd962 | ||
|
|
90091c557d |
@@ -5,5 +5,10 @@ trigger:
|
||||
- test-*
|
||||
pr: none
|
||||
|
||||
variables:
|
||||
# We don't publish our Docker images in this pipeline, but when building them
|
||||
# for testing, let's use the nightly tag.
|
||||
dockerTag: nightly
|
||||
|
||||
stages:
|
||||
- template: templates/stages/test-and-package-stage.yml
|
||||
|
||||
@@ -9,6 +9,9 @@ schedules:
|
||||
- master
|
||||
always: true
|
||||
|
||||
variables:
|
||||
dockerTag: nightly
|
||||
|
||||
stages:
|
||||
- template: templates/stages/test-and-package-stage.yml
|
||||
- template: templates/stages/deploy-stage.yml
|
||||
|
||||
@@ -6,11 +6,13 @@ trigger:
|
||||
- v*
|
||||
pr: none
|
||||
|
||||
variables:
|
||||
dockerTag: ${{variables['Build.SourceBranchName']}}
|
||||
|
||||
stages:
|
||||
- template: templates/stages/test-and-package-stage.yml
|
||||
- template: templates/stages/changelog-stage.yml
|
||||
- template: templates/stages/deploy-stage.yml
|
||||
parameters:
|
||||
snapReleaseChannel: beta
|
||||
dockerTag: ${{variables['Build.SourceBranchName']}}
|
||||
- template: templates/stages/notify-failure-stage.yml
|
||||
|
||||
@@ -1,4 +1,25 @@
|
||||
jobs:
|
||||
- job: docker_build
|
||||
pool:
|
||||
vmImage: ubuntu-18.04
|
||||
steps:
|
||||
- bash: tools/docker/build.sh $(dockerTag)
|
||||
displayName: Build the Docker images
|
||||
# We don't filter for the Docker Hub organization to continue to allow
|
||||
# easy testing of these scripts on forks.
|
||||
- bash: |
|
||||
DOCKER_IMAGES=$(docker images --filter reference='*/certbot' --filter reference='*/dns-*' --format '{{.Repository}}')
|
||||
docker save --output docker_images.tar $DOCKER_IMAGES
|
||||
displayName: Save the Docker images
|
||||
# If the name of the tar file or artifact changes, the deploy stage will
|
||||
# also need to be updated.
|
||||
- bash: mv docker_images.tar $(Build.ArtifactStagingDirectory)
|
||||
displayName: Prepare Docker artifact
|
||||
- task: PublishPipelineArtifact@1
|
||||
inputs:
|
||||
path: $(Build.ArtifactStagingDirectory)
|
||||
artifact: docker_images
|
||||
displayName: Store Docker artifact
|
||||
- job: installer_build
|
||||
pool:
|
||||
vmImage: vs2017-win2016
|
||||
|
||||
@@ -5,9 +5,6 @@ parameters:
|
||||
values:
|
||||
- edge
|
||||
- beta
|
||||
- name: dockerTag
|
||||
type: string
|
||||
default: nightly
|
||||
|
||||
stages:
|
||||
- stage: Deploy
|
||||
@@ -66,6 +63,13 @@ stages:
|
||||
pool:
|
||||
vmImage: ubuntu-18.04
|
||||
steps:
|
||||
- task: DownloadPipelineArtifact@2
|
||||
inputs:
|
||||
artifact: docker_images
|
||||
path: $(Build.SourcesDirectory)
|
||||
displayName: Retrieve Docker images
|
||||
- bash: docker load --input $(Build.SourcesDirectory)/docker_images.tar
|
||||
displayName: Load Docker images
|
||||
- task: Docker@2
|
||||
inputs:
|
||||
command: login
|
||||
@@ -81,7 +85,5 @@ stages:
|
||||
# Certbot organization on Docker Hub.
|
||||
containerRegistry: docker-hub
|
||||
displayName: Login to Docker Hub
|
||||
- bash: tools/docker/build.sh ${{ parameters.dockerTag }}
|
||||
displayName: Build the Docker images
|
||||
- bash: tools/docker/deploy.sh ${{ parameters.dockerTag }}
|
||||
- bash: tools/docker/deploy.sh $(dockerTag)
|
||||
displayName: Deploy the Docker images
|
||||
|
||||
@@ -51,6 +51,10 @@ Build() {
|
||||
}
|
||||
|
||||
TAG_BASE="$1"
|
||||
if [ -z "$TAG_BASE" ]; then
|
||||
echo "We cannot tag Docker images with an empty string!" >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# Step 1: Certbot core Docker
|
||||
Build "$DOCKER_HUB_ORG/certbot" "$TAG_BASE" "$REPO_ROOT" "$WORK_DIR/core"
|
||||
|
||||
@@ -24,6 +24,10 @@ Deploy() {
|
||||
}
|
||||
|
||||
TAG_BASE="$1" # Eg. v0.35.0 or nightly
|
||||
if [ -z "$TAG_BASE" ]; then
|
||||
echo "We cannot tag Docker images with an empty string!" >&2
|
||||
exit 1
|
||||
fi
|
||||
source "$WORK_DIR/lib/common"
|
||||
|
||||
# Step 1: Certbot core Docker
|
||||
|
||||
Reference in New Issue
Block a user