From 4557f2b03dfc764342069c84a70be9dd18fbbb43 Mon Sep 17 00:00:00 2001
From: Felix Ableitner <me@nutomic.com>
Date: Wed, 9 Dec 2020 23:17:32 +0100
Subject: [PATCH] make debug build

---
 .drone.yml | 27 ++++++++++++++++-----------
 1 file changed, 16 insertions(+), 11 deletions(-)

diff --git a/.drone.yml b/.drone.yml
index 0caa6da4..decb6548 100644
--- a/.drone.yml
+++ b/.drone.yml
@@ -8,7 +8,7 @@ steps:
       - name: docker_sock
         path: /var/run/docker.sock
     commands:
-      - docker build . --file docker/prod/Dockerfile --tag dessalines/lemmy:travis
+      - docker build . --file docker/dev/Dockerfile --tag dessalines/lemmy:travis
       
   - name: run federation tests
     image: docker/compose:alpine-1.27.4
@@ -32,16 +32,21 @@ steps:
       - popd
       - docker-compose down
 
-  # TODO: only if tag is set (and read version from git tag as well)
-  #- name: push to docker hub
-  #  image: docker/compose:alpine-1.27.4
-  #  volumes:
-  #    - name: docker_sock
-  #      path: /var/run/docker.sock
-  #  commands:
-  #    - echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin
-  #    - docker tag dessalines/lemmy:travis dessalines/lemmy:v0.8.10
-  #    - docker push dessalines/lemmy:v0.8.10
+   TODO: only if tag is set (and read version from git tag as well)
+  - name: make release build and push to docker hub
+    image: docker/compose:alpine-1.27.4
+    volumes:
+      - name: docker_sock
+        path: /var/run/docker.sock
+    commands:
+      - docker build . --file docker/prod/Dockerfile --tag dessalines/lemmy:travis
+      - echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin
+      - docker tag dessalines/lemmy:travis dessalines/lemmy:v0.8.10
+      - docker push dessalines/lemmy:v0.8.10when:
+    when:
+      ref:
+      - refs/heads/feature-*
+      - refs/tags/*
         
 volumes:
   - name: docker_sock
-- 
2.44.1