country-geo-locations/.drone.yml

50 lines
908 B
YAML
Raw Normal View History

2023-12-22 21:03:28 +01:00
kind: pipeline
2023-12-22 21:25:22 +01:00
name: build
2023-12-22 21:03:28 +01:00
steps:
- name: docker
2023-12-22 21:25:22 +01:00
image: thegeeklab/drone-docker-buildx
privileged: true
2023-12-22 21:03:28 +01:00
settings:
username:
from_secret: DOCKER_USERNAME
password:
from_secret: DOCKER_PASSWORD
repo: yolokube/country-geo-locations
tags:
- latest
- ${DRONE_BUILD_NUMBER}
2023-12-22 21:25:22 +01:00
platforms:
- linux/arm64
- linux/amd64
2023-12-22 21:03:28 +01:00
when:
branch:
- main
event:
2023-12-23 17:17:23 +01:00
- push
- name: docker-build
image: thegeeklab/drone-docker-buildx
privileged: true
settings:
username:
from_secret: DOCKER_USERNAME
password:
from_secret: DOCKER_PASSWORD
repo: yolokube/country-geo-locations
tags:
- latest
- ${DRONE_BUILD_NUMBER}
platforms:
- linux/arm64
- linux/amd64
dry_run: true
when:
branch:
exclude:
- main
event:
- push
when:
event:
exclude:
- pull_request