Switch to building docker containers with buildx and build arm64 version, fixes #84 #179
@ -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"
|
||||
},
|
||||
},
|
||||
|
24
.drone.yml
24
.drone.yml
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user