-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
116 additions
and
115 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
.DS_Store | ||
.travis/config.yml | ||
.travis/travis.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,47 @@ | ||
--- | ||
version: "~> 1.0" | ||
os: linux | ||
language: shell | ||
services: docker | ||
|
||
notifications: | ||
email: | ||
on_success: never | ||
on_failure: never | ||
slack: | ||
if: branch = master | ||
rooms: | ||
secure: YZYwVjd1oqoV3NYIGony8DuPn9DUbY8MepFgHO4I/G/qMBha1UHfWi3iZE9eC5ryr2G7kJJOZkLWQJRjKlOLtPALLhsYlgYhCuTe5rfZ7z9zcFyNw7EIDvj12DbE0OMo3axZlPH+zqBfwkYMMzFb9jcf4dYLyX7uz+2jkeSN4FmeiS0pOTGjHEzJr4YGqSpbMCk8ilrJgzkE8H54897sioP5C5311ivRH4gImeWT+Ml7KPsLZqsmGYu2VutlWurekZm464Ovwy3XL5CFUWu5U7Z2phQwR16H+JplIfIs9Pj9j4cn+VU2Q+3Xc1rM0Td+wf9fy2eOftNfqPQNY73qwBN2rsndwJ/0hB8/yUuM4JeVoSSQjQwjlA0rhKOAjibd7llFFGoXAr49pUZtyUv7Wp7HDOi6ggkr4N/4OkoXH9FuWgo/LcIMb9/xlvu9zP+phc1ZwkT7FTe8WvgKaotTMul0kEudRQn79OoWOJ3YU1jIRRs8+GgvSzflYuED8vSe9q5+BxrWha5WbDEywmQ9B+m72ooff2do1gvujlWU2ftnle4R8khUrAx8x8HDxfSXICXqFtcn8mwyvytwtgb6icJbZZEc1q0OIpX2J1x9SqlygmuErm+cbanvBTxrkX/D2jZYdEIsXRntr0nVs1Q1+uImOgpyVLaQDNzE8ry3sRo= | ||
template: | ||
- "%{commit_subject}" | ||
- build <%{build_url}|#%{build_number}> (<%{compare_url}|%{commit}>) @%{branch} | ||
- by %{author} %{result} in %{duration} | ||
on_success: change | ||
on_failure: always | ||
env: | ||
- REPO='docker-template' TAG='latest' MICROSCANNER_OPTIONS='--continue-on-failure' | ||
|
||
jobs: | ||
- REPO='hello-world' TAG='latest' ORGANIZATION='gepardec' | ||
global: | ||
- secure: T3nA4PTr+XXZPIlbZZn//EImCzHYmtSui6WJOZ11qjubISUpABukslGUf1SlkEJrgtwhjlaPtcYS1/bb+I8+iRebYlL1xB0rqcsoOdHopOuxdfIbnc/Y6c9hlSBZQe1gL/L6cmfPcSWROHetCY+pRfy6BXHfjH14KLAHCBocvInobhENvbY4ylDdbVPLF0j/VrX1rETElMHm9JmqWNyb3UJpcjBPi1dReDhUG7PItQkejGk5fS94i6qwkWmvWciJh02aswKcGD9dWfg1ujoh6k7leJOs/fYNthBeElJDiReTodvdyb4sP7jmv5UN4mnD65xCdDkhYkrzzgyuYcfNVCjFoIYK6pOpSAaPm45L71B5v9XpNTEbSsM2nH7nXbycd8QongZcAJ/mX/SNAbyzcoIh14ndfe+twmP29nP0Xt1bejUcGqqczcf2nSUakrnM4TcgPnJ98fNNgVVxxobrXgZGCFkLdsVRhHlOAhpITHrCCOa0zGUrv3xmG4PiAq6FEcVchkXQ2QWEYg7A4ygU49CpHTBx1mxbBcaAMcOnTjI3NT1Anra7EmhOdUy5kL/AyKe2v3u4lymJjhEf2duClCmp/SDuSUeldyEiD9oWMT/dzrZ6gud8skT1FCuzL/nWS88Ce//PmBR9ykFpVl8D7OjKsLUjaLJhHNX+o3qf9oc= | ||
- secure: cfcz5lHkbCKA2YUCJF+J2oUQaefmZjy9LvSaYUXxea9XPqgp1bV1X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8bzIDclTlCWGRV5vFORnO6p1Fp9JQ2mhWRUh4lgSHq/eRgVwm3Bd/pcElSnV4yQtJNfoP3hP7Z7bJdOX6BKTeB+lhCEj/Tv3t/gtzWWuD4QVCVG8/wGUoAAvYKLpzMS8oDfGTyV3oNsqTnm6MVnfycmV1xHrGFBnqU+TMl37nhvdqsHTCYWTYSiqrY2yMaA0+khKfOBGHmqLwktg7kTBrRAYmGTSx8WwvpYMAkv8iTcAj4= | ||
before_install: | ||
- | | ||
curl -fsSL https://github.com/ckaserer/bash-script-collection/archive/master.zip > bash-script-collection.zip | ||
unzip -j bash-script-collection.zip -d bash-script-collection | ||
rm bash-script-collection.zip | ||
script: | ||
- docker build -t ${ORGANIZATION}/${REPO}:${TAG} --no-cache . | ||
# security check | ||
- > | ||
if [ "${TRAVIS_PULL_REQUEST}" = "false" ]; then | ||
.travis/security-scan.sh ${ORGANIZATION}/${REPO}:${TAG} | ||
else | ||
echo "security scan does not run for pull request. For further information see: https://docs.travis-ci.com/user/pull-requests/#pull-requests-and-security-restrictions" | ||
- | | ||
set -ex | ||
docker build -t ${ORGANIZATION}/${REPO}:${TAG} --no-cache . | ||
docker run --rm -it ${ORGANIZATION}/${REPO}:${TAG} | ||
set +ex | ||
deploy: | ||
provider: script | ||
script: bash ./bash-script-collection/docker-push-image.sh | ||
skip_cleanup: true | ||
on: | ||
branch: master | ||
after_failure: | ||
- | | ||
if [ "${TRAVIS_BRANCH}" == "master" ]; then | ||
./bash-script-collection/googlechat-send-notification.sh | ||
fi | ||
# push image | ||
- > | ||
if [ "$TRAVIS_BRANCH" == "master" ]; then | ||
echo "${DOCKER_PASS}" | docker login -u "${DOCKER_USER}" --password-stdin | ||
docker push ${ORGANIZATION}/${REPO} | ||
fi |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
FROM centos:8 | ||
FROM centos:7 | ||
CMD ["echo", "Hello World"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters