fix: (issues/1) Container is being built, but unable to push to registry.

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

View file

@ -10,7 +10,7 @@ platform:
trigger: trigger:
branch: branch:
include: include:
- development - issues/1
exclude: exclude:
- main - main
@ -22,9 +22,6 @@ volumes:
host: host:
path: /run/docker.sock path: /run/docker.sock
image_pull_secrets:
- docker
steps: steps:
- name: Build ${DRONE_REPO} Container Image - name: Build ${DRONE_REPO} Container Image
image: plugins/docker image: plugins/docker
@ -32,13 +29,15 @@ steps:
- name: dockersock - name: dockersock
path: /var/run/docker.sock path: /var/run/docker.sock
settings: settings:
auth: auto_tag: false
from_secret: Docker daemon_off: true
auto_tag: true debug: false
dockerfile: docker/Dockerfile dockerfile: docker/Dockerfile
# mirror: "https://registry.dragonheim.net:443" mirror: "https://registry.dragonheim.net/"
username: purge: true
from_secret: docker_username
repo: ${DRONE_REPO} repo: ${DRONE_REPO}
# target: development # 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. # Ignore G'Agent configuration file.
gagent.hcl 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 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 RUN apk add --no-cache zeromq; mkdir -p -m 0700 /etc/gagent
COPY --from=builder /gagent/examples/example_gagent.hcl /etc/gagent/gagent.hcl COPY --from=builder /gagent/examples/example_gagent.hcl /etc/gagent/gagent.hcl

View file

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