Fixed Dockerfile and build script
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
9f4be2d76e
commit
32f3d013f8
18
.drone.yml
18
.drone.yml
|
@ -17,18 +17,10 @@ steps:
|
||||||
- name: socket
|
- name: socket
|
||||||
path: /var/run/docker.sock
|
path: /var/run/docker.sock
|
||||||
environment:
|
environment:
|
||||||
MQTT_HOST:
|
MQTT_PASSWORD:
|
||||||
from_secret: MQTT_HOST
|
from_secret: MQTT_PASSWORD
|
||||||
MQTT_PORT:
|
HUE_TOKEN:
|
||||||
from_secret: MQTT_PORT
|
from_secret: HUE_TOKEN
|
||||||
MQTT_USER:
|
|
||||||
from_secret: MQTT_USER
|
|
||||||
MQTT_PASS:
|
|
||||||
from_secret: MQTT_PASS
|
|
||||||
HUE_IP:
|
|
||||||
from_secret: HUE_IP
|
|
||||||
HUE_BRIDGE:
|
|
||||||
from_secret: HUE_BRIDGE
|
|
||||||
NTFY_TOPIC:
|
NTFY_TOPIC:
|
||||||
from_secret: NTFY_TOPIC
|
from_secret: NTFY_TOPIC
|
||||||
GOOGLE_CREDENTIALS:
|
GOOGLE_CREDENTIALS:
|
||||||
|
@ -38,7 +30,7 @@ steps:
|
||||||
|
|
||||||
- docker rm automation || true
|
- docker rm automation || true
|
||||||
|
|
||||||
- docker create -e MQTT_HOST=$MQTT_HOST -e MQTT_PORT=$MQTT_PORT -e MQTT_USER=$MQTT_USER -e MQTT_PASS=$MQTT_PASS -e MQTT_CLIENT_ID=$MQTT_CLIENT_ID -e HUE_IP=$HUE_IP -e HUE_BRIDGE=$HUE_BRIDGE -e NTFY_TOPIC=$NTFY_TOPIC -e GOOGLE_CREDENTIALS=$GOOGLE_CREDENTIALS --network mqtt --name automation automation
|
- docker create -e MQTT_PASSWORD=$MQTT_PASSWORD -e HUE_TOKEN=$HUE_TOKEN -e NTFY_TOPIC=$NTFY_TOPIC -e GOOGLE_CREDENTIALS=$GOOGLE_CREDENTIALS --network mqtt --name automation automation
|
||||||
- docker network connect mqtt automation
|
- docker network connect mqtt automation
|
||||||
- docker network connect web automation
|
- docker network connect web automation
|
||||||
- docker start automation
|
- docker start automation
|
||||||
|
|
|
@ -14,5 +14,6 @@ FROM golang:alpine
|
||||||
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
COPY --from=build-automation /src/automation /app/automation
|
COPY --from=build-automation /src/automation /app/automation
|
||||||
|
COPY --from=build-automation /src/config.yml /app/config.yml
|
||||||
|
|
||||||
CMD ["/app/automation"]
|
CMD ["/app/automation"]
|
||||||
|
|
Reference in New Issue
Block a user