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 kind: pipeline
type: docker type: docker
name: default name: default
steps: steps:
# - name: debug-env - name: kaniko-build
# image: alpine image: gcr.io/kaniko-project/executor:latest
# commands: environment:
# - printenv | grep DOCKER DOCKER_CONFIG: /root/.docker/
# - printenv | grep GITEA commands:
- echo "{\"auths\":{\"git.internet-master.cz:5050\":{\"username\":\"$GITEA_REGISTRY_USER\",\"password\":\"$GITEA_REGISTRY_PASS\"}}}" > /root/.docker/config.json
- name: docker-build - /kaniko/executor
image: plugins/docker --dockerfile=Dockerfile
settings: --context=.
repo: git.internet-master.cz:5050/jakub/dotnettest --destination=git.internet-master.cz:5050/jakub/dotnettest:latest
tags: latest --insecure
dockerfile: Dockerfile --skip-tls-verify
username: --verbosity=debug
from_secret: GITEA_REGISTRY_USER
password:
from_secret: GITEA_REGISTRY_PASS
- name: deploy - name: deploy
image: appleboy/drone-ssh image: appleboy/drone-ssh
@@ -34,3 +30,4 @@ steps:
- docker stop myblazorapp || true - docker stop myblazorapp || true
- docker rm 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