From 2d9baaea96f793d5fe6dfaf3cbd57a7f65d3b42f Mon Sep 17 00:00:00 2001 From: Dessalines Date: Wed, 13 Jan 2021 09:39:10 -0500 Subject: [PATCH] fixing drone. --- .drone.yml | 16 +++++++--------- deploy.sh | 5 +++-- 2 files changed, 10 insertions(+), 11 deletions(-) diff --git a/.drone.yml b/.drone.yml index b30e740..0e60eb8 100644 --- a/.drone.yml +++ b/.drone.yml @@ -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: diff --git a/deploy.sh b/deploy.sh index 121eb77..58d1d7f 100755 --- 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 -- 2.44.1