Fixed trigger curl and readme updates

This commit is contained in:
Deon George 2020-04-05 22:20:36 +10:00
parent 5cece69746
commit fd547267b7
2 changed files with 2 additions and 2 deletions

View File

@ -38,7 +38,7 @@ build:
- docker build --cache-from ${CI_REGISTRY_IMAGE}:${CACHETAG} -t ${CI_REGISTRY_IMAGE}:${VERSION} -t ${CI_REGISTRY_IMAGE}:${CACHETAG} . - docker build --cache-from ${CI_REGISTRY_IMAGE}:${CACHETAG} -t ${CI_REGISTRY_IMAGE}:${VERSION} -t ${CI_REGISTRY_IMAGE}:${CACHETAG} .
- docker push ${CI_REGISTRY_IMAGE}:${VERSION} - docker push ${CI_REGISTRY_IMAGE}:${VERSION}
- docker push ${CI_REGISTRY_IMAGE}:${CACHETAG} - docker push ${CI_REGISTRY_IMAGE}:${CACHETAG}
- if [ -n "${TRIGGER_PIPELINE}" ]; then curl -X POST -F token=${TRIGGER_PIPELINE} -F ref=x86_64-extras http://dev.leenooks.net/api/v4/projects/45/trigger/pipeline; fi - if [ -n "${TRIGGER_PIPELINE}" ]; then curl -sSX POST -F token=${TRIGGER_PIPELINE} -F ref=x86_64-extras http://dev.leenooks.net/api/v4/projects/45/trigger/pipeline > /dev/null; fi
tags: tags:
- docker - docker
only: only:

View File

@ -35,7 +35,7 @@ To use this container:
| :- | :-- | | :- | :-- |
| -d | Detached mode: run the container in the background and print the new container ID. | | -d | Detached mode: run the container in the background and print the new container ID. |
| -i | Keep STDIN open even if not attached. (required) | | -i | Keep STDIN open even if not attached. (required) |
| -n | Give your container a specific name. (optional) | | --name= | Give your container a specific name. (optional) |
| -p | Map host ports to container ports. (may be required, otherwise recommended) | | -p | Map host ports to container ports. (may be required, otherwise recommended) |
| -t | Allocate a pseudo-TTY. (required) | | -t | Allocate a pseudo-TTY. (required) |
| -v | Map a path on the host into the container (optional but recommended). | | -v | Map a path on the host into the container (optional but recommended). |