From f9359bec88a7addd6660eb22845977c5e7ae0f71 Mon Sep 17 00:00:00 2001 From: zvon Date: Fri, 25 Aug 2023 13:04:22 +0200 Subject: [PATCH] CI: configure drone --- .drone.yml | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 .drone.yml diff --git a/.drone.yml b/.drone.yml new file mode 100644 index 0000000..c88c77b --- /dev/null +++ b/.drone.yml @@ -0,0 +1,32 @@ +--- +kind: pipeline +type: kubernetes +name: build +platform: + os: linux + arch: amd64 + +steps: +- name: formatting-check + image: golang + commands: + - test -z $(gofmt -l .) +- name: build + image: docker + commands: + - docker build +--- +kind: pipeline +type: kubernetes +name: deploy +platform: + os: linux + arch: amd64 + +steps: +- name: build + image: docker + commands: + - docker login "docker.zvon.tech" -u "$DOCKER_USERNAME" -p "$DOCKER_PASSWORD" + - docker buildx create --use + - docker buildx build -f Dockerfile -t "docker.zvon.tech/lunch-go:${DRONE_TAG}" --platform linux/amd64,linux/arm64 --push . \ No newline at end of file