Add docker image publishing

This commit is contained in:
decentral1se 2021-06-03 09:43:44 +02:00
parent e216fe290b
commit 64d578cf91
Signed by untrusted user who does not match committer: decentral1se
GPG Key ID: 92DAD76BD9567B8A
3 changed files with 29 additions and 1 deletions

View File

@ -18,6 +18,19 @@ steps:
commands: commands:
- bats tests - 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 - name: notify rocket chat
image: plugins/slack image: plugins/slack
settings: settings:

9
Dockerfile Normal file
View 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"]

View File

@ -1,4 +1,4 @@
.PHONY: test shellcheck docopt release-installer .PHONY: test shellcheck docopt release-installer build push
test: test:
@sudo DOCKER_CONTEXT=default docker run \ @sudo DOCKER_CONTEXT=default docker run \
@ -43,3 +43,9 @@ release-apps:
docker stack rm abra-apps-json && \ docker stack rm abra-apps-json && \
cd deploy/apps.coopcloud.tech && \ cd deploy/apps.coopcloud.tech && \
DOCKER_CONTEXT=swarm.autonomic.zone docker stack deploy -c compose.yml abra-apps-json 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