Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 25 additions & 6 deletions .drone.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,33 @@
pipeline: default
name: default
steps:
- name: docker build
image: plugins/docker
- name: build
image: docker
commands:
- docker build -t nodeintegration/bevenv:${DRONE_BRANCH}-${DRONE_BUILD_NUMBER} ./
volumes:
- name: docker
path: /var/run/docker.sock
settings:
username:
from_secret: dockerhub_username
password:
from_secret: dockerhub_password
repo: nodeintegration/bevenv
tags:
- 1.0.1
dry_run: true
- name: test
image: docker
commands:
- docker ps
- docker images | grep nodeintegration | grep bevenv
- docker run nodeintegration/bevenv:${DRONE_BRANCH}-${DRONE_BUILD_NUMBER} echo "yay"
volumes:
- name: docker
path: /var/run/docker.sock
settings:
username:
from_secret: dockerhub_username
password:
from_secret: dockerhub_password
volumes:
- name: docker
host:
path: /var/run/docker.sock
2 changes: 2 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ FROM golang:alpine AS shfmt
LABEL name="shfmt"
LABEL version="2.5.1"


ENV GOOS linux
ENV CGO_ENABLED 0
ENV SHFMT_VERSION 2.5.1
Expand Down Expand Up @@ -109,3 +110,4 @@ COPY --chown=dlt:dlt config/entrypoint.sh /
ENTRYPOINT [ "/entrypoint.sh" ]
WORKDIR ${HOME}/workspace