imfreedom/www.imfreedom.org
Clone
Summary
Browse
Changes
Graph
Add a convey.yml
2019-06-05, Gary Kramlich
0f7a83c3099b
Parents
ab29e7739f3b
Children
13f2f36d3489
a59549397162
Add a convey.yml
1 files changed, 48 insertions(+), 0 deletions(-)
+48
-0
convey.yml
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/convey.yml Wed Jun 05 15:26:18 2019 -0500
@@ -0,0 +1,48 @@
+environment:
+ - REPO=imfreedom/www
+ - TAG=latest
+ - REGISTER_USERNAME
+ - REGISTRY_PASSWORD
+ - REGISTRY=docker.io
+
+tasks:
+ import:
+ type: docker/import
+ files: .:.
+ build:
+ type: docker/build
+ dockerfile: Dockerfile
+ tag: ${REGISTRY}/${REPO}:${TAG}
+ files: .
+ push:
+ type: docker/push
+ image: ${REGISTRY}/${REPO}:${TAG}
+ clean:
+ type: docker/remove
+ image: ${REGISTRY}/${REPO}:${TAG}
+ login:
+ type: docker/login
+ username: ${REGISTRY_USERNAME}
+ password: ${REGISTRY_PASSWORD}
+ server: ${REGISTRY}
+ logout:
+ type: docker/logout
+ server: ${REGISTRY}
+
+plans:
+ default:
+ stages:
+ - tasks: [import, build]
+ publish:
+ stages:
+ - tasks: [push]
+ cicd:
+ stages:
+ - name: build
+ tasks: [import, build]
+ - name: publish
+ tasks: [login, push]
+ - name: cleanup
+ tasks: [logout, clean]
+ run: always
+