Skip to content

Commit

Permalink
add drone build
Browse files Browse the repository at this point in the history
  • Loading branch information
ming.hsu committed Jan 18, 2022
1 parent d739e03 commit 625efc4
Show file tree
Hide file tree
Showing 2 changed files with 57 additions and 1 deletion.
56 changes: 56 additions & 0 deletions .drone.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
kind: pipeline
name: default

x-build-docker-image: &x-build-docker-image
image: plugins/docker
settings:
tags:
- ${DRONE_COMMIT_BRANCH}-${DRONE_COMMIT_SHA:0:7}
- latest
username:
from_secret: docker_username
password:
from_secret: docker_password

steps:
- name: publish_linux_amd64
<<: *x-build-docker-image
settings:
repo: minghsu0107/update-kustomization
dockerfile: Dockerfile
depends_on:
- clone
when:
event:
- push

trigger:
branch:
- main
---
kind: pipeline
type: docker
name: release

platform:
os: linux
arch: amd64

x-build-docker-image: &x-build-docker-image
image: plugins/docker
settings:
tags:
- ${DRONE_TAG}
username:
from_secret: docker_username
password:
from_secret: docker_password
steps:
- name: publish_release
<<: *x-build-docker-image
settings:
repo: minghsu0107/update-kustomization
dockerfile: Dockerfile
when:
event:
- tag
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ name: update-kustomization
steps:
- name: kustomization
pull: if-not-exists
image: minghsu0107/update-kustomization:v1.0.3
image: minghsu0107/update-kustomization
environment:
SSH_KEY:
from_secret: ssh_key
Expand Down

0 comments on commit 625efc4

Please sign in to comment.