mirror of
https://github.com/adferrand/docker-backuppc.git
synced 2023-11-05 04:40:26 +01:00
Align config
This commit is contained in:
parent
9e826a5039
commit
7ef4eb00c9
@ -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
|
||||
|
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user