fix: Fixing issues/1, drone build push failure.

This commit is contained in:
James Wells 2021-02-26 13:31:22 +00:00 committed by James Wells
parent 8b54fc32c5
commit e6d0b37063
Signed by: jwells
GPG key ID: 73196D10B8E65666
4 changed files with 19 additions and 12 deletions

View file

@ -10,7 +10,7 @@ platform:
trigger:
branch:
include:
- development
- issues/1
exclude:
- main
@ -22,9 +22,6 @@ volumes:
host:
path: /run/docker.sock
image_pull_secrets:
- docker
steps:
- name: Build ${DRONE_REPO} Container Image
image: plugins/docker
@ -32,13 +29,15 @@ steps:
- name: dockersock
path: /var/run/docker.sock
settings:
auth:
from_secret: Docker
auto_tag: true
auto_tag: false
daemon_off: true
debug: false
dockerfile: docker/Dockerfile
# mirror: "https://registry.dragonheim.net:443"
username:
from_secret: docker_username
mirror: "https://registry.dragonheim.net/"
purge: true
repo: ${DRONE_REPO}
# target: development
username:
from_secret: docker_username
password:
from_secret: docker_auth

3
.gitignore vendored
View file

@ -42,3 +42,6 @@ debug
# Ignore G'Agent configuration file.
gagent.hcl
# Ignore various Drone CI support files
.drone.secrets

View file

@ -8,7 +8,9 @@ RUN apk add --no-cache zeromq-dev build-base git && \
FROM alpine:3.12
LABEL Name="G'Agent" Maintainer="jwells@dragonheim.net" License="MIT License"
LABEL Name="G'Agent"
LABEL Maintainer="jwells@dragonheim.net"
LABEL License="MIT License"
RUN apk add --no-cache zeromq; mkdir -p -m 0700 /etc/gagent
COPY --from=builder /gagent/examples/example_gagent.hcl /etc/gagent/gagent.hcl

View file

@ -27,6 +27,9 @@ var exitCodes = struct {
"SETUP_FAILED": 2,
"INVALID_MODE": 3,
"AGENT_LOAD_FAILED": 4,
"AGENT_MISSING_TAGS": 5,
"NO_ROUTERS_DEFINED": 6,
"NO_WORKERS_DEFINED": 6,
}}
func main() {