]> Untitled Git - lemmy-ui.git/commitdiff
fixing drone.
authorDessalines <tyhou13@gmx.com>
Wed, 13 Jan 2021 14:39:10 +0000 (09:39 -0500)
committerDessalines <tyhou13@gmx.com>
Wed, 13 Jan 2021 14:39:10 +0000 (09:39 -0500)
.drone.yml
deploy.sh

index b30e740d22dd7aaa3839279b7cd81221743efa9e..0e60eb8a0420db53e2036e62c2c32d561d97aaa0 100644 (file)
@@ -30,19 +30,16 @@ steps:
     commands:
       - yarn build:dev
 
-  - name: create docker tags
-    image: node:14-alpine
-    commands:
-      - echo "$(git describe),latest" > .tags
-    when:
-      ref:
-        - refs/tags/*
-
-  - name: try to make a build
+  - name: make release build and push to docker hub
     image: plugins/docker
     settings:
       dockerfile: Dockerfile
       repo: dessalines/lemmy-ui
+      auto_tag: true
+      username:
+        from_secret: docker_username
+      password:
+        from_secret: docker_password
     when:
       ref:
         - refs/tags/*
@@ -70,6 +67,7 @@ steps:
       dockerfile: Dockerfile
       repo: dessalines/lemmy-ui
       auto_tag: true
+      auto_tag_suffix: arm64
       username:
         from_secret: docker_username
       password:
index 121eb77276ccca1c9d468414bcdd8a28159c2781..58d1d7fb9c796b19f9bd7bc9dddc2c0112e1977e 100755 (executable)
--- a/deploy.sh
+++ b/deploy.sh
@@ -2,8 +2,9 @@
 
 new_tag="$1"
 
-sudo docker build . --tag dessalines/lemmy-ui:$new_tag
-sudo docker push dessalines/lemmy-ui:$new_tag
+# Old deploy
+# sudo docker build . --tag dessalines/lemmy-ui:$new_tag
+# sudo docker push dessalines/lemmy-ui:$new_tag
 
 git tag $new_tag
 git push origin $new_tag