From d71d58f9c675739df43ff734ae4c35781549b052 Mon Sep 17 00:00:00 2001 From: Sam Al-Sapti Date: Wed, 26 Jul 2023 16:57:00 +0200 Subject: [PATCH 1/2] 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 f168fb3..d9a7147 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: From 3c692301e1e2ed5938c3bcdb35fa118d26e4b376 Mon Sep 17 00:00:00 2001 From: Sam Al-Sapti Date: Wed, 26 Jul 2023 16:58:26 +0200 Subject: [PATCH 2/2] Fix .drone.yml --- .drone.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.drone.yml b/.drone.yml index d9a7147..3080e5c 100644 --- a/.drone.yml +++ b/.drone.yml @@ -12,7 +12,7 @@ steps: - hugo --destination _site/ # stable site - - name: docker + - name: docker_stable image: plugins/docker settings: repo: docker.data.coop/data-coop-website @@ -32,7 +32,7 @@ steps: - pull_request # staging site - - name: docker + - name: docker_staging image: plugins/docker settings: repo: docker.data.coop/data-coop-website