update file
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
2023-07-10 12:54:22 +08:00
parent e86cd394c5
commit 5b6090e88d
6 changed files with 36 additions and 14 deletions

View File

@@ -134,7 +134,7 @@ steps:
kind: pipeline
type: docker
name: main-merge-pull-request-prod
name: main-tag-prod
platform:
os: linux
@@ -146,16 +146,32 @@ trigger:
- main
event:
include:
- push
- tag
clone:
disable: true
steps:
- name: semantic-release
image: lework/semantic-release
settings:
git_login:
from_secret: gitea_user
git_password:
from_secret: gitea_password
- name: clone-repo
image: alpine/git
commands:
- git clone ${DRONE_GIT_HTTP_URL} .
- git checkout ${DRONE_BRANCH}
- name: build-and-push-image
image: plugins/docker
settings:
registry:
from_secret: Œ
username:
from_secret: docker_username
password:
from_secret: docker_password
repo: gitea.bearcatlog.com/bryant/todo
context: .
dockerfile: ./Dockerfile
tags:
- ${DRONE_TAG}
# auto_tag: true
purge: true
compress: true
# TODO 通知 k8s 更新镜像