diff --git a/.drone.yml b/.drone.yml index 07c321a..4da9513 100644 --- a/.drone.yml +++ b/.drone.yml @@ -3,15 +3,17 @@ type: kubernetes name: default steps: - - name: docker + - name: generate_tags + image: node + commands: + - echo -n "${DRONE_BRANCH}-$(date +'%Y%m%d%H%M%S')-${DRONE_COMMIT::10}, latest" > .tags + + - name: publish_docker image: plugins/docker settings: - registry: gitea.va.reichard.io repo: gitea.va.reichard.io/reichard/docs + registry: gitea.va.reichard.io username: from_secret: docker_username password: from_secret: docker_password - tags: - - latest - - ${DRONE_COMMIT}