From d71d58f9c675739df43ff734ae4c35781549b052 Mon Sep 17 00:00:00 2001 From: Sam Al-Sapti Date: Wed, 26 Jul 2023 16:57:00 +0200 Subject: [PATCH] Build Docker image with correct tags --- .drone.yml | 23 ++++++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) diff --git a/.drone.yml b/.drone.yml index f168fb33..d9a71471 100644 --- a/.drone.yml +++ b/.drone.yml @@ -11,6 +11,7 @@ steps: - dpkg -i hugo.deb - hugo --destination _site/ + # stable site - name: docker image: plugins/docker settings: @@ -22,7 +23,7 @@ steps: from_secret: DOCKER_PASSWORD tags: - "${DRONE_BUILD_NUMBER}" - - "hugo" + - "stable" when: branch: - main @@ -30,6 +31,26 @@ steps: exclude: - pull_request + # staging site + - name: docker + image: plugins/docker + settings: + repo: docker.data.coop/data-coop-website + registry: docker.data.coop + username: + from_secret: DOCKER_USERNAME + password: + from_secret: DOCKER_PASSWORD + tags: + - "${DRONE_BUILD_NUMBER}" + - "staging" + when: + branch: + - staging + event: + exclude: + - pull_request + - name: notify image: plugins/matrix settings: