diff --git a/.drone.yml b/.drone.yml index a577542..96193e9 100644 --- a/.drone.yml +++ b/.drone.yml @@ -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 diff --git a/Dockerfile b/Dockerfile index 263221f..a27acf4 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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 @@ -109,3 +110,4 @@ COPY --chown=dlt:dlt config/entrypoint.sh / ENTRYPOINT [ "/entrypoint.sh" ] WORKDIR ${HOME}/workspace +