Switch to building docker containers with buildx and build arm64 version, fixes #84 #179

Merged
mwalbeck merged 2 commits from arm64-builds into master 2021-07-06 23:33:03 +00:00
2 changed files with 20 additions and 10 deletions
Showing only changes of commit 49f8b84374 - Show all commits

View File

@ -69,11 +69,12 @@ def default_tests(name, grav_version, dockerfile="Dockerfile"):
"steps": [
{
"name": "build test",
"image": "plugins/docker",
"image": "thegeeklab/drone-docker-buildx",
"pull": "if-not-exists",
"settings": {
"dockerfile": "%s/%s" % (grav_version, dockerfile),
"dry_run": "true",
"platforms": "linux/amd64,linux/arm64",
"repo": "mwalbeck/getgrav"
},
}
@ -109,7 +110,7 @@ def release(name, grav_version, dockerfile="Dockerfile", app_env="", custom_tags
},
{
"name": "build and publish",
"image": "plugins/docker",
"image": "thegeeklab/drone-docker-buildx",
"pull": "if-not-exists",
"settings": {
"dockerfile": "%s/%s" % (grav_version, dockerfile),
@ -119,6 +120,7 @@ def release(name, grav_version, dockerfile="Dockerfile", app_env="", custom_tags
"password": {
"from_secret": "dockerhub_password"
},
"platforms": "linux/amd64,linux/arm64",
"repo": "mwalbeck/getgrav"
},
},

View File

@ -50,10 +50,11 @@ platform:
steps:
- name: build test
pull: if-not-exists
image: plugins/docker
image: thegeeklab/drone-docker-buildx
settings:
dockerfile: 1.6/Dockerfile
dry_run: true
platforms: linux/amd64,linux/arm64
repo: mwalbeck/getgrav
trigger:
@ -75,10 +76,11 @@ platform:
steps:
- name: build test
pull: if-not-exists
image: plugins/docker
image: thegeeklab/drone-docker-buildx
settings:
dockerfile: 1.6/Dockerfile.prod
dry_run: true
platforms: linux/amd64,linux/arm64
repo: mwalbeck/getgrav
trigger:
@ -100,10 +102,11 @@ platform:
steps:
- name: build test
pull: if-not-exists
image: plugins/docker
image: thegeeklab/drone-docker-buildx
settings:
dockerfile: 1.7/Dockerfile
dry_run: true
platforms: linux/amd64,linux/arm64
repo: mwalbeck/getgrav
trigger:
@ -125,10 +128,11 @@ platform:
steps:
- name: build test
pull: if-not-exists
image: plugins/docker
image: thegeeklab/drone-docker-buildx
settings:
dockerfile: 1.7/Dockerfile.prod
dry_run: true
platforms: linux/amd64,linux/arm64
repo: mwalbeck/getgrav
trigger:
@ -159,11 +163,12 @@ steps:
- name: build and publish
pull: if-not-exists
image: plugins/docker
image: thegeeklab/drone-docker-buildx
settings:
dockerfile: 1.6/Dockerfile
password:
from_secret: dockerhub_password
platforms: linux/amd64,linux/arm64
repo: mwalbeck/getgrav
username:
from_secret: dockerhub_username
@ -215,11 +220,12 @@ steps:
- name: build and publish
pull: if-not-exists
image: plugins/docker
image: thegeeklab/drone-docker-buildx
settings:
dockerfile: 1.6/Dockerfile.prod
password:
from_secret: dockerhub_password
platforms: linux/amd64,linux/arm64
repo: mwalbeck/getgrav
username:
from_secret: dockerhub_username
@ -271,11 +277,12 @@ steps:
- name: build and publish
pull: if-not-exists
image: plugins/docker
image: thegeeklab/drone-docker-buildx
settings:
dockerfile: 1.7/Dockerfile
password:
from_secret: dockerhub_password
platforms: linux/amd64,linux/arm64
repo: mwalbeck/getgrav
username:
from_secret: dockerhub_username
@ -328,11 +335,12 @@ steps:
- name: build and publish
pull: if-not-exists
image: plugins/docker
image: thegeeklab/drone-docker-buildx
settings:
dockerfile: 1.7/Dockerfile.prod
password:
from_secret: dockerhub_password
platforms: linux/amd64,linux/arm64
repo: mwalbeck/getgrav
username:
from_secret: dockerhub_username