--- a/REFERENCE.md Thu Sep 21 15:28:02 2017 -0500
+++ b/REFERENCE.md Thu Sep 21 15:28:51 2017 -0500
@@ -41,6 +41,10 @@
This example shows how to have one file extend another, inheriting all of the plans and tasks that are
not otherwise overwritten by the configuration file.
+This examples show how you can login and logout of a Docker registry by using environment variables. This example shows how to use the script attribute of a run task.
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/examples/login-logout.yml Thu Sep 21 15:28:51 2017 -0500
@@ -0,0 +1,20 @@
+ - DOCKER_REGISTRY=registry + - DOCKER_USERNAME=username + - DOCKER_PASSWORD=password + server: ${DOCKER_REGISTRY} + username: ${DOCKER_USERNAME} + password: ${DOCKER_PASSWORD} + server: ${DOCKER_REGISTRY}