Add docker image publishing
This commit is contained in:
parent
e216fe290b
commit
64d578cf91
13
.drone.yml
13
.drone.yml
@ -18,6 +18,19 @@ steps:
|
||||
commands:
|
||||
- bats tests
|
||||
|
||||
- name: publish image
|
||||
image: plugins/docker
|
||||
settings:
|
||||
username:
|
||||
from_secret: docker_reg_username
|
||||
password:
|
||||
from_secret: docker_reg_passwd
|
||||
repo: decentral1se/abra
|
||||
tags: latest
|
||||
depends_on:
|
||||
- run shellcheck
|
||||
- run flake8
|
||||
|
||||
- name: notify rocket chat
|
||||
image: plugins/slack
|
||||
settings:
|
||||
|
9
Dockerfile
Normal file
9
Dockerfile
Normal file
@ -0,0 +1,9 @@
|
||||
FROM alpine:latest
|
||||
|
||||
RUN apk add --no-cache curl bash
|
||||
|
||||
RUN mkdir -p ~./local/bin
|
||||
|
||||
RUN curl https://install.abra.coopcloud.tech | bash -s
|
||||
|
||||
ENTRYPOINT ["/root/.local/bin/abra"]
|
8
makefile
8
makefile
@ -1,4 +1,4 @@
|
||||
.PHONY: test shellcheck docopt release-installer
|
||||
.PHONY: test shellcheck docopt release-installer build push
|
||||
|
||||
test:
|
||||
@sudo DOCKER_CONTEXT=default docker run \
|
||||
@ -43,3 +43,9 @@ release-apps:
|
||||
docker stack rm abra-apps-json && \
|
||||
cd deploy/apps.coopcloud.tech && \
|
||||
DOCKER_CONTEXT=swarm.autonomic.zone docker stack deploy -c compose.yml abra-apps-json
|
||||
|
||||
build:
|
||||
@docker build -t decentral1se/abra .
|
||||
|
||||
push: build
|
||||
@docker push decentral1se/abra
|
||||
|
Reference in New Issue
Block a user