File tree Expand file tree Collapse file tree 3 files changed +12
-6
lines changed Expand file tree Collapse file tree 3 files changed +12
-6
lines changed Original file line number Diff line number Diff line change @@ -59,13 +59,13 @@ before_script:
59
59
script :
60
60
# Push to docker hub on success
61
61
- if [ "${TRAVIS_PULL_REQUEST}" == "false" ]; then
62
- make login USER="${DOCKER_USERNAME}" PASS="${DOCKER_PASSWORD}";
62
+ while ! make login USER="${DOCKER_USERNAME}" PASS="${DOCKER_PASSWORD}"; do sleep 1; done ;
63
63
if [ -n "${TRAVIS_TAG}" ]; then
64
- make push TAG="${VERSION}-${TRAVIS_TAG}";
64
+ while ! make push TAG="${VERSION}-${TRAVIS_TAG}"; do sleep 1; done ;
65
65
elif [ "${TRAVIS_BRANCH}" == "master" ]; then
66
- make push TAG=${VERSION};
66
+ while ! make push TAG=${VERSION}; do sleep 1; done ;
67
67
elif [[ ${TRAVIS_BRANCH} =~ ^(release-[.0-9]+)$ ]]; then
68
- make push TAG="${VERSION}-${TRAVIS_BRANCH}";
68
+ while ! make push TAG="${VERSION}-${TRAVIS_BRANCH}"; do sleep 1; done ;
69
69
else
70
70
echo "Skipping branch ${TRAVIS_BRANCH}";
71
71
fi
Original file line number Diff line number Diff line change @@ -39,6 +39,9 @@ RUN set -x \
39
39
40
40
# Use a clean tiny image to store artifacts in
41
41
FROM alpine:latest
42
+ LABEL \
43
+ maintainer="cytopia <cytopia@everythingcli.org>" \
44
+ repo="https://github.com/cytopia/docker-terraform-docs"
42
45
COPY --from=builder /go/src/github.com/segmentio/terraform-docs/bin/linux-amd64/terraform-docs /usr/local/bin/terraform-docs
43
46
COPY ./data/docker-entrypoint.sh /docker-entrypoint.sh
44
47
Original file line number Diff line number Diff line change 9
9
10
10
> #### All awesome CI images
11
11
>
12
+ > [ ansible] ( https://github.com/cytopia/docker-ansible ) |
12
13
> [ ansible-lint] ( https://github.com/cytopia/docker-ansible-lint ) |
13
14
> [ awesome-ci] ( https://github.com/cytopia/awesome-ci ) |
14
15
> [ jsonlint] ( https://github.com/cytopia/docker-jsonlint ) |
15
16
> [ terraform-docs] ( https://github.com/cytopia/docker-terraform-docs ) |
16
17
> [ yamllint] ( https://github.com/cytopia/docker-yamllint )
17
18
18
19
19
- [ ![ Docker hub ] ( http ://dockeri.co/image/ cytopia/terraform-docs)] ( https://hub.docker.com/r/cytopia/terraform-docs )
20
+ View ** [ Dockerfile ] ( https ://github.com/ cytopia/docker- terraform-docs/blob/master/Dockerfile ) ** on GitHub.
20
21
22
+ [ ![ Docker hub] ( http://dockeri.co/image/cytopia/terraform-docs )] ( https://hub.docker.com/r/cytopia/terraform-docs )
21
23
22
- Dockerized version of [ terraform-docs] ( https://github.com/segmentio/terraform-docs ) <sup >[ 1] </sup >,
24
+ Tiny Alpine-based multistage-build dockerized version of [ terraform-docs] ( https://github.com/segmentio/terraform-docs ) <sup >[ 1] </sup >,
23
25
which additionally implements ` terraform-docs-replace ` allowing you to automatically and safely
24
26
replace the ` terraform-docs ` generated output infile.
27
+ The image is built nightly against multiple stable versions and pushed to Dockerhub.
25
28
26
29
<sub >[ 1] Official project: https://github.com/segmentio/terraform-docs </sub >
27
30
You can’t perform that action at this time.
0 commit comments