Skip to content

Commit

Permalink
Merge pull request #1 from manuelbuil/main
Browse files Browse the repository at this point in the history
Add .drone config file
  • Loading branch information
manuelbuil authored Feb 23, 2021
2 parents b080fc0 + 69d0d22 commit 4bf4763
Showing 1 changed file with 50 additions and 0 deletions.
50 changes: 50 additions & 0 deletions .drone.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
---
kind: pipeline
type: docker
name: linux-amd64

platform:
os: linux
arch: amd64

steps:
- name: build
pull: always
image: rancher/hardened-build-base:v1.15.2b5
commands:
- make DRONE_TAG=${DRONE_TAG}
volumes:
- name: docker
path: /var/run/docker.sock

- name: publish
image: rancher/hardened-build-base:v1.15.2b5
commands:
- docker login -u $DOCKER_USERNAME -p $DOCKER_PASSWORD
- make DRONE_TAG=${DRONE_TAG} image-push image-manifest
environment:
DOCKER_PASSWORD:
from_secret: docker_password
DOCKER_USERNAME:
from_secret: docker_username
volumes:
- name: docker
path: /var/run/docker.sock
when:
event:
- tag

- name: scan
image: rancher/hardened-build-base:v1.15.2b5
commands:
- make DRONE_TAG=${DRONE_TAG} image-scan
volumes:
- name: docker
path: /var/run/docker.sock

volumes:
- name: docker
host:
path: /var/run/docker.sock

...

0 comments on commit 4bf4763

Please sign in to comment.