Compare commits
7 Commits
adea6be4f7
...
d8f7d9dc85
Author | SHA1 | Date |
---|---|---|
Paolo Asperti | d8f7d9dc85 | |
Paolo Asperti | 4a5a806860 | |
Paolo Asperti | 9e19382e0f | |
Paolo Asperti | 95942e9948 | |
Paolo Asperti | 1ee1efc57d | |
Paolo Asperti | 6da604ce44 | |
Paolo Asperti | 05058884ee |
28
.drone.yml
28
.drone.yml
|
@ -1,35 +1,23 @@
|
||||||
kind: pipeline
|
kind: pipeline
|
||||||
|
type: docker
|
||||||
name: default
|
name: default
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: build
|
|
||||||
image: plugins/docker:linux-amd64
|
|
||||||
pull: always
|
|
||||||
settings:
|
|
||||||
daemon_off: false
|
|
||||||
dry_run: true
|
|
||||||
repo: docker.asperti.com/paspo/mqtt
|
|
||||||
tags:
|
|
||||||
- latest
|
|
||||||
when:
|
|
||||||
event:
|
|
||||||
exclude:
|
|
||||||
- tag
|
|
||||||
|
|
||||||
- name: build_and_publish
|
- name: build_and_publish
|
||||||
image: plugins/docker:linux-amd64
|
image: plugins/docker:linux-amd64
|
||||||
pull: always
|
|
||||||
settings:
|
settings:
|
||||||
auto_tag: true
|
|
||||||
daemon_off: false
|
|
||||||
password:
|
password:
|
||||||
from_secret: docker_password
|
from_secret: docker_password
|
||||||
registry: docker.asperti.com
|
registry: docker.asperti.com
|
||||||
repo: docker.asperti.com/paspo/mqtt
|
repo: docker.asperti.com/paspo/mqtt
|
||||||
tags:
|
tags:
|
||||||
- latest
|
- latest
|
||||||
|
- ${DRONE_TAG}
|
||||||
|
- ${DRONE_SEMVER_MAJOR}.${DRONE_SEMVER_MINOR}
|
||||||
|
force_tag: true
|
||||||
username:
|
username:
|
||||||
from_secret: docker_username
|
from_secret: docker_username
|
||||||
when:
|
|
||||||
event:
|
trigger:
|
||||||
- tag
|
event:
|
||||||
|
- tag
|
|
@ -1,4 +1,5 @@
|
||||||
FROM alpine:3.12
|
FROM alpine:3.14
|
||||||
RUN apk -U upgrade && apk add mosquitto mosquitto-clients openssl
|
RUN \
|
||||||
EXPOSE 8883
|
apk -U upgrade && apk add mosquitto mosquitto-clients openssl && \
|
||||||
|
echo "log_dest stdout" >/etc/mosquitto/mosquitto.conf
|
||||||
ENTRYPOINT ["mosquitto", "-c", "/etc/mosquitto/mosquitto.conf"]
|
ENTRYPOINT ["mosquitto", "-c", "/etc/mosquitto/mosquitto.conf"]
|
||||||
|
|
Loading…
Reference in New Issue