diff --git a/.drone.yml b/.drone.yml index b8d1ae8..20b0853 100644 --- a/.drone.yml +++ b/.drone.yml @@ -1,32 +1,10 @@ kind: pipeline -name: build-amd64 -platform: - arch: amd64 +name: build + steps: - name: docker - image: plugins/docker - settings: - username: - from_secret: DOCKER_USERNAME - password: - from_secret: DOCKER_PASSWORD - repo: yolokube/country-geo-locations - tags: - - latest - - ${DRONE_BUILD_NUMBER} - when: - branch: - - main - event: - - push ---- -kind: pipeline -name: build-arm64 -platform: - arch: arm64 -steps: -- name: docker - image: plugins/docker + image: thegeeklab/drone-docker-buildx + privileged: true settings: username: from_secret: DOCKER_USERNAME @@ -36,6 +14,9 @@ steps: tags: - latest - ${DRONE_BUILD_NUMBER} + platforms: + - linux/arm64 + - linux/amd64 when: branch: - main