diff --git a/.drone.yml b/.drone.yml index f8467d8..8402ebd 100644 --- a/.drone.yml +++ b/.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: diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..70e7550 --- /dev/null +++ b/Dockerfile @@ -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"] diff --git a/makefile b/makefile index a7a3647..f29c421 100644 --- a/makefile +++ b/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