mirror of
https://github.com/dragonheim/gagent.git
synced 2025-01-18 04:56:28 -08:00
fix: Fixing issues/1, drone build push failure.
This commit is contained in:
parent
8b54fc32c5
commit
e6d0b37063
4 changed files with 19 additions and 12 deletions
21
.drone.yml
21
.drone.yml
|
@ -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
3
.gitignore
vendored
|
@ -42,3 +42,6 @@ debug
|
|||
|
||||
# Ignore G'Agent configuration file.
|
||||
gagent.hcl
|
||||
|
||||
# Ignore various Drone CI support files
|
||||
.drone.secrets
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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() {
|
||||
|
|
Loading…
Add table
Reference in a new issue