grim/containers/package_cloud
Clone
Summary
Browse
Changes
Graph
Update convey.yml for our normal bamboo flow
2019-05-23, Gary Kramlich
e60161e4c317
Parents
22bca61a47c3
Children
b6ecb26a10fb
Update convey.yml for our normal bamboo flow
1 files changed, 26 insertions(+), 1 deletions(-)
+26
-1
convey.yml
--- a/convey.yml Tue Nov 13 23:08:50 2018 -0600
+++ b/convey.yml Thu May 23 23:04:15 2019 -0500
@@ -1,3 +1,10 @@
+environment:
+ - REPO=rwgrim/package_cloud
+ - TAG=latest
+ - REGISTRY_USERNAME
+ - REGISTRY_PASSWORD
+ - REGISTRY_HOST=docker.io
+
tasks:
import:
type: docker/import
@@ -5,8 +12,19 @@
build:
type: docker/build
dockerfile: Dockerfile
- tags: rwgrim/package_cloud
+ tags: ${REGISTRY_HOST}/${REPO}:${TAG}
files: entrypoint.sh
+ push:
+ type: docker/push
+ image: ${REGISTRY_HOST}/${REPO}:${TAG}
+ login:
+ type: docker/login
+ server: ${REGISTRY_HOST}
+ username: ${REGISTRY_USERNAME}
+ password: ${REGISTRY_PASSWORD}
+ logout:
+ type: docker/logout
+ server: ${REGISTRY_HOST}
plans:
default:
@@ -14,3 +32,10 @@
- tasks:
- import
- build
+
+ cicd:
+ stages:
+ - tasks: [login, import, build, push]
+ - tasks: [logout]
+ run: always
+