Compare commits
1 commit
cced962b60
...
f86379253e
Author | SHA1 | Date | |
---|---|---|---|
f86379253e |
1 changed files with 27 additions and 1 deletions
28
.drone.yml
28
.drone.yml
|
@ -1,6 +1,7 @@
|
||||||
|
# Test building the code and docker image
|
||||||
kind: pipeline
|
kind: pipeline
|
||||||
type: docker
|
type: docker
|
||||||
name: Tests
|
name: test-build
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: go-test
|
- name: go-test
|
||||||
|
@ -31,6 +32,11 @@ steps:
|
||||||
privileged: true
|
privileged: true
|
||||||
settings:
|
settings:
|
||||||
repo: git.faercol.me/faercol/public-ip-tracker
|
repo: git.faercol.me/faercol/public-ip-tracker
|
||||||
|
registry: git.faercol.me
|
||||||
|
tags: latest
|
||||||
|
username: faercol
|
||||||
|
password:
|
||||||
|
from_secret: GIT_PASSWORD
|
||||||
depends_on:
|
depends_on:
|
||||||
- go-test
|
- go-test
|
||||||
- go-build
|
- go-build
|
||||||
|
@ -39,4 +45,24 @@ steps:
|
||||||
trigger:
|
trigger:
|
||||||
event:
|
event:
|
||||||
- push
|
- push
|
||||||
|
|
||||||
|
# On a tag, only build the related docker image
|
||||||
|
kind: pipeline
|
||||||
|
type: docker
|
||||||
|
name: Release
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: docker-push-tag
|
||||||
|
image: thegeeklab/drone-docker-buildx
|
||||||
|
privileged: true
|
||||||
|
settings:
|
||||||
|
registry: git.faercol.me
|
||||||
|
repo: git.faercol.me/faercol/public-ip-tracker
|
||||||
|
auto_tag: true
|
||||||
|
username: faercol
|
||||||
|
password:
|
||||||
|
from_secret: GIT_PASSWORD
|
||||||
|
|
||||||
|
trigger:
|
||||||
|
event:
|
||||||
- tag
|
- tag
|
||||||
|
|
Loading…
Add table
Reference in a new issue