Update .drone.yml

This commit is contained in:
2025-05-21 12:27:59 +00:00
parent 5d282c7460
commit f2d2cb52bf

View File

@@ -1,25 +1,21 @@
# testy
kind: pipeline
type: docker
name: default
steps:
# - name: debug-env
# image: alpine
# commands:
# - printenv | grep DOCKER
# - printenv | grep GITEA
- name: docker-build
image: plugins/docker
settings:
repo: git.internet-master.cz:5050/jakub/dotnettest
tags: latest
dockerfile: Dockerfile
username:
from_secret: GITEA_REGISTRY_USER
password:
from_secret: GITEA_REGISTRY_PASS
- name: kaniko-build
image: gcr.io/kaniko-project/executor:latest
environment:
DOCKER_CONFIG: /root/.docker/
commands:
- echo "{\"auths\":{\"git.internet-master.cz:5050\":{\"username\":\"$GITEA_REGISTRY_USER\",\"password\":\"$GITEA_REGISTRY_PASS\"}}}" > /root/.docker/config.json
- /kaniko/executor
--dockerfile=Dockerfile
--context=.
--destination=git.internet-master.cz:5050/jakub/dotnettest:latest
--insecure
--skip-tls-verify
--verbosity=debug
- name: deploy
image: appleboy/drone-ssh
@@ -33,4 +29,5 @@ steps:
- docker pull git.internet-master.cz:5050/jakub/dotnettest:latest
- docker stop myblazorapp || true
- docker rm myblazorapp || true
- docker run -d --name myblazorapp -p 8080:80 git.internet-master.cz:5050/jakub/dotnettest:latest
- docker run -d --name myblazorapp -p 8080:80 git.internet-master.cz:5050/jakub/dotnettest:latest