Switch to building docker containers with buildx and build arm64 version, fixes #84 #179
2 changed files with 20 additions and 10 deletions
|
@ -69,11 +69,12 @@ def default_tests(name, grav_version, dockerfile="Dockerfile"):
|
||||||
"steps": [
|
"steps": [
|
||||||
{
|
{
|
||||||
"name": "build test",
|
"name": "build test",
|
||||||
"image": "plugins/docker",
|
"image": "thegeeklab/drone-docker-buildx",
|
||||||
"pull": "if-not-exists",
|
"pull": "if-not-exists",
|
||||||
"settings": {
|
"settings": {
|
||||||
"dockerfile": "%s/%s" % (grav_version, dockerfile),
|
"dockerfile": "%s/%s" % (grav_version, dockerfile),
|
||||||
"dry_run": "true",
|
"dry_run": "true",
|
||||||
|
"platforms": "linux/amd64,linux/arm64",
|
||||||
"repo": "mwalbeck/getgrav"
|
"repo": "mwalbeck/getgrav"
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
@ -109,7 +110,7 @@ def release(name, grav_version, dockerfile="Dockerfile", app_env="", custom_tags
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "build and publish",
|
"name": "build and publish",
|
||||||
"image": "plugins/docker",
|
"image": "thegeeklab/drone-docker-buildx",
|
||||||
"pull": "if-not-exists",
|
"pull": "if-not-exists",
|
||||||
"settings": {
|
"settings": {
|
||||||
"dockerfile": "%s/%s" % (grav_version, dockerfile),
|
"dockerfile": "%s/%s" % (grav_version, dockerfile),
|
||||||
|
@ -119,6 +120,7 @@ def release(name, grav_version, dockerfile="Dockerfile", app_env="", custom_tags
|
||||||
"password": {
|
"password": {
|
||||||
"from_secret": "dockerhub_password"
|
"from_secret": "dockerhub_password"
|
||||||
},
|
},
|
||||||
|
"platforms": "linux/amd64,linux/arm64",
|
||||||
"repo": "mwalbeck/getgrav"
|
"repo": "mwalbeck/getgrav"
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
24
.drone.yml
24
.drone.yml
|
@ -50,10 +50,11 @@ platform:
|
||||||
steps:
|
steps:
|
||||||
- name: build test
|
- name: build test
|
||||||
pull: if-not-exists
|
pull: if-not-exists
|
||||||
image: plugins/docker
|
image: thegeeklab/drone-docker-buildx
|
||||||
settings:
|
settings:
|
||||||
dockerfile: 1.6/Dockerfile
|
dockerfile: 1.6/Dockerfile
|
||||||
dry_run: true
|
dry_run: true
|
||||||
|
platforms: linux/amd64,linux/arm64
|
||||||
repo: mwalbeck/getgrav
|
repo: mwalbeck/getgrav
|
||||||
|
|
||||||
trigger:
|
trigger:
|
||||||
|
@ -75,10 +76,11 @@ platform:
|
||||||
steps:
|
steps:
|
||||||
- name: build test
|
- name: build test
|
||||||
pull: if-not-exists
|
pull: if-not-exists
|
||||||
image: plugins/docker
|
image: thegeeklab/drone-docker-buildx
|
||||||
settings:
|
settings:
|
||||||
dockerfile: 1.6/Dockerfile.prod
|
dockerfile: 1.6/Dockerfile.prod
|
||||||
dry_run: true
|
dry_run: true
|
||||||
|
platforms: linux/amd64,linux/arm64
|
||||||
repo: mwalbeck/getgrav
|
repo: mwalbeck/getgrav
|
||||||
|
|
||||||
trigger:
|
trigger:
|
||||||
|
@ -100,10 +102,11 @@ platform:
|
||||||
steps:
|
steps:
|
||||||
- name: build test
|
- name: build test
|
||||||
pull: if-not-exists
|
pull: if-not-exists
|
||||||
image: plugins/docker
|
image: thegeeklab/drone-docker-buildx
|
||||||
settings:
|
settings:
|
||||||
dockerfile: 1.7/Dockerfile
|
dockerfile: 1.7/Dockerfile
|
||||||
dry_run: true
|
dry_run: true
|
||||||
|
platforms: linux/amd64,linux/arm64
|
||||||
repo: mwalbeck/getgrav
|
repo: mwalbeck/getgrav
|
||||||
|
|
||||||
trigger:
|
trigger:
|
||||||
|
@ -125,10 +128,11 @@ platform:
|
||||||
steps:
|
steps:
|
||||||
- name: build test
|
- name: build test
|
||||||
pull: if-not-exists
|
pull: if-not-exists
|
||||||
image: plugins/docker
|
image: thegeeklab/drone-docker-buildx
|
||||||
settings:
|
settings:
|
||||||
dockerfile: 1.7/Dockerfile.prod
|
dockerfile: 1.7/Dockerfile.prod
|
||||||
dry_run: true
|
dry_run: true
|
||||||
|
platforms: linux/amd64,linux/arm64
|
||||||
repo: mwalbeck/getgrav
|
repo: mwalbeck/getgrav
|
||||||
|
|
||||||
trigger:
|
trigger:
|
||||||
|
@ -159,11 +163,12 @@ steps:
|
||||||
|
|
||||||
- name: build and publish
|
- name: build and publish
|
||||||
pull: if-not-exists
|
pull: if-not-exists
|
||||||
image: plugins/docker
|
image: thegeeklab/drone-docker-buildx
|
||||||
settings:
|
settings:
|
||||||
dockerfile: 1.6/Dockerfile
|
dockerfile: 1.6/Dockerfile
|
||||||
password:
|
password:
|
||||||
from_secret: dockerhub_password
|
from_secret: dockerhub_password
|
||||||
|
platforms: linux/amd64,linux/arm64
|
||||||
repo: mwalbeck/getgrav
|
repo: mwalbeck/getgrav
|
||||||
username:
|
username:
|
||||||
from_secret: dockerhub_username
|
from_secret: dockerhub_username
|
||||||
|
@ -215,11 +220,12 @@ steps:
|
||||||
|
|
||||||
- name: build and publish
|
- name: build and publish
|
||||||
pull: if-not-exists
|
pull: if-not-exists
|
||||||
image: plugins/docker
|
image: thegeeklab/drone-docker-buildx
|
||||||
settings:
|
settings:
|
||||||
dockerfile: 1.6/Dockerfile.prod
|
dockerfile: 1.6/Dockerfile.prod
|
||||||
password:
|
password:
|
||||||
from_secret: dockerhub_password
|
from_secret: dockerhub_password
|
||||||
|
platforms: linux/amd64,linux/arm64
|
||||||
repo: mwalbeck/getgrav
|
repo: mwalbeck/getgrav
|
||||||
username:
|
username:
|
||||||
from_secret: dockerhub_username
|
from_secret: dockerhub_username
|
||||||
|
@ -271,11 +277,12 @@ steps:
|
||||||
|
|
||||||
- name: build and publish
|
- name: build and publish
|
||||||
pull: if-not-exists
|
pull: if-not-exists
|
||||||
image: plugins/docker
|
image: thegeeklab/drone-docker-buildx
|
||||||
settings:
|
settings:
|
||||||
dockerfile: 1.7/Dockerfile
|
dockerfile: 1.7/Dockerfile
|
||||||
password:
|
password:
|
||||||
from_secret: dockerhub_password
|
from_secret: dockerhub_password
|
||||||
|
platforms: linux/amd64,linux/arm64
|
||||||
repo: mwalbeck/getgrav
|
repo: mwalbeck/getgrav
|
||||||
username:
|
username:
|
||||||
from_secret: dockerhub_username
|
from_secret: dockerhub_username
|
||||||
|
@ -328,11 +335,12 @@ steps:
|
||||||
|
|
||||||
- name: build and publish
|
- name: build and publish
|
||||||
pull: if-not-exists
|
pull: if-not-exists
|
||||||
image: plugins/docker
|
image: thegeeklab/drone-docker-buildx
|
||||||
settings:
|
settings:
|
||||||
dockerfile: 1.7/Dockerfile.prod
|
dockerfile: 1.7/Dockerfile.prod
|
||||||
password:
|
password:
|
||||||
from_secret: dockerhub_password
|
from_secret: dockerhub_password
|
||||||
|
platforms: linux/amd64,linux/arm64
|
||||||
repo: mwalbeck/getgrav
|
repo: mwalbeck/getgrav
|
||||||
username:
|
username:
|
||||||
from_secret: dockerhub_username
|
from_secret: dockerhub_username
|
||||||
|
|
Loading…
Reference in a new issue