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:
|
steps:
|
||||||
- script: |
|
- script: |
|
||||||
set -e
|
set -e
|
||||||
docker run --rm --privileged multiarch/qemu-user-static --reset -p yes
|
|
||||||
docker buildx create --use
|
docker buildx create --use
|
||||||
VERSION=`cat VERSION`
|
VERSION=`cat VERSION`
|
||||||
echo "Docker tag is: ${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
|
displayName: Build container
|
||||||
- task: PublishPipelineArtifact@1
|
- task: PublishPipelineArtifact@1
|
||||||
inputs:
|
inputs:
|
||||||
@ -27,6 +27,7 @@ jobs:
|
|||||||
path: $(Build.SourcesDirectory)
|
path: $(Build.SourcesDirectory)
|
||||||
displayName: Retrieve Docker artifact
|
displayName: Retrieve Docker artifact
|
||||||
- script: |
|
- script: |
|
||||||
|
set -e
|
||||||
docker load < docker-backuppc.tar.gz
|
docker load < docker-backuppc.tar.gz
|
||||||
mkdir -p ./bin
|
mkdir -p ./bin
|
||||||
curl -fsSL https://goss.rocks/install | GOSS_DST=./bin sh
|
curl -fsSL https://goss.rocks/install | GOSS_DST=./bin sh
|
||||||
@ -43,6 +44,7 @@ jobs:
|
|||||||
path: $(Build.SourcesDirectory)
|
path: $(Build.SourcesDirectory)
|
||||||
displayName: Retrieve Docker artifact
|
displayName: Retrieve Docker artifact
|
||||||
- script: |
|
- script: |
|
||||||
|
set -e
|
||||||
docker load < docker-backuppc.tar.gz
|
docker load < docker-backuppc.tar.gz
|
||||||
docker run --name backuppc-integration --detach -p 8080:8080 adferrand/backuppc
|
docker run --name backuppc-integration --detach -p 8080:8080 adferrand/backuppc
|
||||||
sleep 5
|
sleep 5
|
||||||
|
@ -10,8 +10,6 @@ jobs:
|
|||||||
displayName: Login to DockerHub
|
displayName: Login to DockerHub
|
||||||
- script: |
|
- script: |
|
||||||
set -e
|
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 run --rm --privileged multiarch/qemu-user-static --reset -p yes
|
||||||
docker buildx create --use
|
docker buildx create --use
|
||||||
VERSION=`cat VERSION`
|
VERSION=`cat VERSION`
|
||||||
@ -29,11 +27,13 @@ jobs:
|
|||||||
addToPath: true
|
addToPath: true
|
||||||
displayName: Install Python
|
displayName: Install Python
|
||||||
- script: |
|
- script: |
|
||||||
|
set -e
|
||||||
VERSION=`cat VERSION`
|
VERSION=`cat VERSION`
|
||||||
echo "Version is: $version"
|
echo "Version is: $version"
|
||||||
echo "##vso[task.setvariable variable=ReleaseVersion;]${VERSION}"
|
echo "##vso[task.setvariable variable=ReleaseVersion;]${VERSION}"
|
||||||
displayName: Get version
|
displayName: Get version
|
||||||
- script: |
|
- script: |
|
||||||
|
set -e
|
||||||
python utils/extract_changelog.py $(ReleaseVersion) > release_$(ReleaseVersion).md
|
python utils/extract_changelog.py $(ReleaseVersion) > release_$(ReleaseVersion).md
|
||||||
- task: GithubRelease@0
|
- task: GithubRelease@0
|
||||||
inputs:
|
inputs:
|
||||||
|
Loading…
Reference in New Issue
Block a user