Only run itest and add sock
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
IamTheFij 2020-08-26 16:48:18 -07:00
parent a60ff562c7
commit c24bdad381

View File

@ -3,121 +3,124 @@ kind: pipeline
name: test name: test
steps: steps:
- name: test # - name: test
image: golang:1.15 # image: golang:1.15
commands:
- make test
- name: check
image: python:3
commands:
- pip install docker-compose pre-commit
- wget -L -O /usr/bin/hadolint https://github.com/hadolint/hadolint/releases/download/v1.18.0/hadolint-Linux-x86_64
- chmod +x /usr/bin/hadolint
- make check
# - name: itest
# image: docker/compose:alpine-1.26.2
# environment:
# VERSION: ${DRONE_TAG:-${DRONE_COMMIT}}
# commands: # commands:
# - apk add make bash # - make test
# - make itest
--- # - name: check
kind: pipeline # image: python:3
name: publish # commands:
# - pip install docker-compose pre-commit
# - wget -L -O /usr/bin/hadolint https://github.com/hadolint/hadolint/releases/download/v1.18.0/hadolint-Linux-x86_64
# - chmod +x /usr/bin/hadolint
# - make check
depends_on: - name: itest
- test image: docker/compose
volumes:
trigger: - name: dockersock
event: path: /var/run/docker.sock
- push
- tag
refs:
- refs/heads/master
- refs/tags/v*
steps:
- name: build
image: golang:1.15
environment: environment:
VERSION: ${DRONE_TAG:-${DRONE_COMMIT}} VERSION: ${DRONE_TAG:-${DRONE_COMMIT}}
commands: commands:
- make build-linux-static - apk add make bash
- make itest
- name: push image - arm # ---
image: plugins/docker # kind: pipeline
settings: # name: publish
repo: iamthefij/dockron #
auto_tag: true # depends_on:
auto_tag_suffix: linux-arm # - test
username: #
from_secret: docker_username # trigger:
password: # event:
from_secret: docker_password # - push
build_args: # - tag
- ARCH=arm # refs:
- REPO=arm32v7 # - refs/heads/master
# - refs/tags/v*
- name: push image - arm64 #
image: plugins/docker # steps:
settings: # - name: build
repo: iamthefij/dockron # image: golang:1.15
auto_tag: true # environment:
auto_tag_suffix: linux-arm64 # VERSION: ${DRONE_TAG:-${DRONE_COMMIT}}
username: # commands:
from_secret: docker_username # - make build-linux-static
password: #
from_secret: docker_password # - name: push image - arm
build_args: # image: plugins/docker
- ARCH=arm64 # settings:
- REPO=arm64v8 # repo: iamthefij/dockron
# auto_tag: true
- name: push image - amd64 # auto_tag_suffix: linux-arm
image: plugins/docker # username:
settings: # from_secret: docker_username
repo: iamthefij/dockron # password:
auto_tag: true # from_secret: docker_password
auto_tag_suffix: linux-amd64 # build_args:
username: # - ARCH=arm
from_secret: docker_username # - REPO=arm32v7
password: #
from_secret: docker_password # - name: push image - arm64
# image: plugins/docker
- name: publish manifest # settings:
image: plugins/manifest # repo: iamthefij/dockron
settings: # auto_tag: true
spec: manifest.tmpl # auto_tag_suffix: linux-arm64
auto_tag: true # username:
ignore_missing: true # from_secret: docker_username
username: # password:
from_secret: docker_username # from_secret: docker_password
password: # build_args:
from_secret: docker_password # - ARCH=arm64
# - REPO=arm64v8
--- #
kind: pipeline # - name: push image - amd64
name: notify # image: plugins/docker
# settings:
depends_on: # repo: iamthefij/dockron
- test # auto_tag: true
- publish # auto_tag_suffix: linux-amd64
# username:
trigger: # from_secret: docker_username
status: # password:
- failure # from_secret: docker_password
#
steps: # - name: publish manifest
# image: plugins/manifest
- name: notify # settings:
image: drillster/drone-email # spec: manifest.tmpl
settings: # auto_tag: true
host: # ignore_missing: true
from_secret: SMTP_HOST # pragma: whitelist secret # username:
username: # from_secret: docker_username
from_secret: SMTP_USER # pragma: whitelist secret # password:
password: # from_secret: docker_password
from_secret: SMTP_PASS # pragma: whitelist secret #
from: drone@iamthefij.com # ---
# kind: pipeline
# name: notify
#
# depends_on:
# - test
# - publish
#
# trigger:
# status:
# - failure
#
# steps:
#
# - name: notify
# image: drillster/drone-email
# settings:
# host:
# from_secret: SMTP_HOST # pragma: whitelist secret
# username:
# from_secret: SMTP_USER # pragma: whitelist secret
# password:
# from_secret: SMTP_PASS # pragma: whitelist secret
# from: drone@iamthefij.com