mirror of
https://github.com/LemmyNet/lemmy-ui.git
synced 2024-11-22 12:21:13 +00:00
fixing drone.
This commit is contained in:
parent
33134ba17e
commit
2d9baaea96
2 changed files with 10 additions and 11 deletions
16
.drone.yml
16
.drone.yml
|
@ -30,19 +30,16 @@ steps:
|
||||||
commands:
|
commands:
|
||||||
- yarn build:dev
|
- yarn build:dev
|
||||||
|
|
||||||
- name: create docker tags
|
- name: make release build and push to docker hub
|
||||||
image: node:14-alpine
|
|
||||||
commands:
|
|
||||||
- echo "$(git describe),latest" > .tags
|
|
||||||
when:
|
|
||||||
ref:
|
|
||||||
- refs/tags/*
|
|
||||||
|
|
||||||
- name: try to make a build
|
|
||||||
image: plugins/docker
|
image: plugins/docker
|
||||||
settings:
|
settings:
|
||||||
dockerfile: Dockerfile
|
dockerfile: Dockerfile
|
||||||
repo: dessalines/lemmy-ui
|
repo: dessalines/lemmy-ui
|
||||||
|
auto_tag: true
|
||||||
|
username:
|
||||||
|
from_secret: docker_username
|
||||||
|
password:
|
||||||
|
from_secret: docker_password
|
||||||
when:
|
when:
|
||||||
ref:
|
ref:
|
||||||
- refs/tags/*
|
- refs/tags/*
|
||||||
|
@ -70,6 +67,7 @@ steps:
|
||||||
dockerfile: Dockerfile
|
dockerfile: Dockerfile
|
||||||
repo: dessalines/lemmy-ui
|
repo: dessalines/lemmy-ui
|
||||||
auto_tag: true
|
auto_tag: true
|
||||||
|
auto_tag_suffix: arm64
|
||||||
username:
|
username:
|
||||||
from_secret: docker_username
|
from_secret: docker_username
|
||||||
password:
|
password:
|
||||||
|
|
|
@ -2,8 +2,9 @@
|
||||||
|
|
||||||
new_tag="$1"
|
new_tag="$1"
|
||||||
|
|
||||||
sudo docker build . --tag dessalines/lemmy-ui:$new_tag
|
# Old deploy
|
||||||
sudo docker push dessalines/lemmy-ui:$new_tag
|
# sudo docker build . --tag dessalines/lemmy-ui:$new_tag
|
||||||
|
# sudo docker push dessalines/lemmy-ui:$new_tag
|
||||||
|
|
||||||
git tag $new_tag
|
git tag $new_tag
|
||||||
git push origin $new_tag
|
git push origin $new_tag
|
||||||
|
|
Loading…
Reference in a new issue