Align config

This commit is contained in:
Adrien Ferrand 2021-10-10 17:14:37 +02:00
parent 9e826a5039
commit 7ef4eb00c9
2 changed files with 6 additions and 4 deletions

View File

@ -5,11 +5,11 @@ jobs:
steps:
- script: |
set -e
docker run --rm --privileged multiarch/qemu-user-static --reset -p yes
docker buildx create --use
VERSION=`cat VERSION`
echo "Docker tag is: ${VERSION}"
docker buildx build --platform linux/amd64,linux/arm64,linux/arm/v7 --tag adferrand/backuppc --output type=local,dest=test .
docker buildx build --platform linux/amd64 --tag adferrand/backuppc --load .
docker save adferrand/backuppc | gzip -c -1 > $(Build.ArtifactStagingDirectory)/docker-backuppc.tar.gz
displayName: Build container
- task: PublishPipelineArtifact@1
inputs:
@ -27,6 +27,7 @@ jobs:
path: $(Build.SourcesDirectory)
displayName: Retrieve Docker artifact
- script: |
set -e
docker load < docker-backuppc.tar.gz
mkdir -p ./bin
curl -fsSL https://goss.rocks/install | GOSS_DST=./bin sh
@ -43,6 +44,7 @@ jobs:
path: $(Build.SourcesDirectory)
displayName: Retrieve Docker artifact
- script: |
set -e
docker load < docker-backuppc.tar.gz
docker run --name backuppc-integration --detach -p 8080:8080 adferrand/backuppc
sleep 5

View File

@ -10,8 +10,6 @@ jobs:
displayName: Login to DockerHub
- script: |
set -e
curl -fsSL get.docker.com -o get-docker.sh && sh get-docker.sh
export DOCKER_CLI_EXPERIMENTAL=enabled
docker run --rm --privileged multiarch/qemu-user-static --reset -p yes
docker buildx create --use
VERSION=`cat VERSION`
@ -29,11 +27,13 @@ jobs:
addToPath: true
displayName: Install Python
- script: |
set -e
VERSION=`cat VERSION`
echo "Version is: $version"
echo "##vso[task.setvariable variable=ReleaseVersion;]${VERSION}"
displayName: Get version
- script: |
set -e
python utils/extract_changelog.py $(ReleaseVersion) > release_$(ReleaseVersion).md
- task: GithubRelease@0
inputs: