mirror of
https://github.com/adferrand/docker-backuppc.git
synced 2023-11-05 04:40:26 +01:00
Multiarch
This commit is contained in:
parent
359b7ec72d
commit
c49b580ae0
@ -3,29 +3,25 @@ jobs:
|
|||||||
pool:
|
pool:
|
||||||
vmImage: ubuntu-18.04
|
vmImage: ubuntu-18.04
|
||||||
steps:
|
steps:
|
||||||
- task: DownloadPipelineArtifact@2
|
|
||||||
inputs:
|
|
||||||
artifact: docker
|
|
||||||
path: $(Build.SourcesDirectory)
|
|
||||||
displayName: Retrieve Docker artifact
|
|
||||||
- task: Docker@2
|
- task: Docker@2
|
||||||
inputs:
|
inputs:
|
||||||
command: login
|
command: login
|
||||||
containerRegistry: docker-hub
|
containerRegistry: docker-hub
|
||||||
displayName: Login to DockerHub
|
displayName: Login to DockerHub
|
||||||
- script: |
|
- script: |
|
||||||
docker load < docker-backuppc.tar.gz
|
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`
|
VERSION=`cat VERSION`
|
||||||
echo "Docker tag is: ${VERSION}"
|
echo "Docker tag is: ${VERSION}"
|
||||||
docker tag adferrand/backuppc adferrand/backuppc:4
|
docker buildx build --platform linux/amd64,linux/arm64,linux/arm/v7 --tag adferrand/backuppc:${VERSION} --tag adferrand/backuppc:4 --tag adferrand/backuppc --push .
|
||||||
docker tag adferrand/backuppc "adferrand/backuppc:${VERSION}"
|
|
||||||
docker push "adferrand/backuppc:${VERSION}"
|
|
||||||
docker push adferrand/backuppc:4
|
|
||||||
docker push adferrand/backuppc
|
|
||||||
displayName: Tag and push Docker images to DockerHub
|
displayName: Tag and push Docker images to DockerHub
|
||||||
- job: github
|
- job: github
|
||||||
pool:
|
pool:
|
||||||
vmImage: ubuntu-18.04
|
vmImage: ubuntu-18.04
|
||||||
|
dependsOn: docker
|
||||||
steps:
|
steps:
|
||||||
- task: UsePythonVersion@0
|
- task: UsePythonVersion@0
|
||||||
inputs:
|
inputs:
|
||||||
@ -46,10 +42,3 @@ jobs:
|
|||||||
releaseNotesFile: $(Build.SourcesDirectory)/release_$(ReleaseVersion).md
|
releaseNotesFile: $(Build.SourcesDirectory)/release_$(ReleaseVersion).md
|
||||||
addChangeLog: false
|
addChangeLog: false
|
||||||
displayName: Create GitHub Release
|
displayName: Create GitHub Release
|
||||||
- job: trigger_dockerhub
|
|
||||||
pool:
|
|
||||||
vmImage: ubuntu-18.04
|
|
||||||
steps:
|
|
||||||
- script: |
|
|
||||||
curl -H "Content-Type: application/json" --data '{"docker_tag": "master"}' -X POST https://registry.hub.docker.com/u/adferrand/backuppc/trigger/$(DOCKERHUB_TRIGGER_ID)/
|
|
||||||
displayName: Trigger DockerHub build
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
FROM alpine:3.14.0
|
FROM alpine:3.14.2
|
||||||
|
|
||||||
LABEL maintainer="Adrien Ferrand <ferrand.ad@gmail.com>"
|
LABEL maintainer="Adrien Ferrand <ferrand.ad@gmail.com>"
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user