This repository has been archived by the owner on Jul 20, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 5
/
.travis.yml
34 lines (30 loc) · 3.6 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
sudo: required
dist: bionic
language: minimal
services:
- docker
env:
global:
# AWS_ACCESS_KEY_ID
- secure: "tFWVPVl7fhp0EFdZZ0iOBeq0Bvka98C4DHuxM/TEubSx0423YhVPEucL0lv3lsPg7VE+XSwP0N8n6VCUEFlqJeab0WkU5dcjYdwSbE1XlCZuzh/SawYDMgVYpSGrtYZ5rXuqQpEhSrDDwAVgycokyg2IGMBdshNg4fpwdB2Y3xIzQ1kXDnmh8TRMvk54Mg9zxcRXfKNmbbpRwW2SjcmCYUhm3kWoJM6Ev4+JVtxrI4zCXw8BIEOIa41cRjtNLXgcNibU39jlzQ3+udcU2DuMf3kEuH6fesn7qG3v+dryd0LTBOV/uHu2kJVcdLyPUvD2q7EeDtqITWjShXA7pafldSeUMQyvntQbYq/1Bee2JHyq+5Ih769a6KxmJMaUCtps6iUidmtaZLZnzVXZUR9IsaKklYh5I/4+P7xzq4HkDawlgbXoOn3xs/Ij5zSRA063Mo/l0BK1dCQrGqMTHVFzvXiRcEHe9GkkLSFx7dmOdxQA6YW4k8eWCSq3UH5CrC0aMTEDeNf7i2QRQm7bnyoN83/MTH6vKM9rKl96POt1qMJsITE5447nTfzeUohI+9T+G3sR/CpW9L0k7No1zKM45wchfUSPHdeWdXMXphwEZq9EOqhTTUvJw+yHYyCUJPUxu9IVEVpTa0eAjSHN8UtHSQGtR+2F7auKxKECXLB7Xq4="
# AWS_SECRET_ACCESS_KEY
- secure: "DwdElADEFPEN99x+T+7krIeqs9O1ijImhzbueTNUhaMHx/M5MGlAyM1B+kQ0s9YcaCmPQvgppP6IVv4ifHxc/NABVa4s5+9/4VdZS1rPYuHVSmJr5oWYwFtG23WyZYlCJKumtbJSamXuj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0DkiqXCxyslKU0eNTG8u/BhmVuNIG7EJiZ8alAm4FpK1oDb5C5DfAZTFy2gCsB6te/VjQuqSU9kZHJiYvc018LGUwF93z4qpSsKDt0rV2LweJ8qH+5SqfR3Si5T4fk5gqL9A7ARuMnmVciW+kVIEf73MtD7V0E/6IrWgnE="
# GITHUB_TOKEN
- secure: "MBGr8juNlVHMbx5JQtSerF8njOrOwBA3hsQvpjLmjfXj0uOtIboKq+1tBwa8aYxlr5jeLZOHvnDlM6w2P9yPR1QHvBFo4GTvm+OZ0CBqzZIA5kqeKt9KRRGoDpuBh6uVlxvbNccdF7OkMhsj25ZaY2SBk6PE/SEIY4fuXjJZ6ewblnIkOMkhCh+vvz+1jVdIpj7qGVbZloM/CZUWsF4/TFMVCKTlwdWkrRsPF+H7FtGn+ma8+wEI1X5io0ZKqPrZcKTBAbJBRKxbXgieV7dQMPntQ79pP1bvqnWlMcpKXco6NjJop56/8w9BvhqXGbbit9x3wFUrn+m9FhQIu7yc2lcy5OTpS18rwsmxVjxHB3OVsl/YArOdzsVEeKV4CE0RSI2HFJc1DA7qwacQ99GvTOtOx40aZg6e32htk/Loxx6v9+bQah4M/KmF2VXes8mTa/l+bum5+TzFhGMdTyU0N9mt8Fzo0nnohcIR0OBmJdbkYofV3Ouh/TrMLe+/UzwsqbRjZGiyosOXfJQlJ4IwTEEaH9ZZhQnCiBrOj/sIdR+iPeUeFiZ23eaPn1BcaeTKrnCIS4wOcvYBWrJZxMu016AyUY4M0j4AdBrEXDFSh+LFR1p9xZA/fqj76WiJ+gkBYD7hBx86U7XauN9CxqbWLuQ+Kj3reqMRKeUyh+fQjQI="
install:
- git clone https://github.com/Opetushallitus/ci-tools.git
- source ci-tools/common/setup-tools.sh
- export ARTIFACT_NAME="baseimage-war"
script:
- export DOCKER_TARGET="${ECR_REPO}/${ARTIFACT_NAME}:ci-${TRAVIS_BUILD_NUMBER}"
- export BUILD_TIME="$(date -u --iso-8601=seconds)"
- docker build --label BaseimageType="$(echo ${ARTIFACT_NAME} | cut -d '-' -f 2)-${TRAVIS_BRANCH}" --label BaseimageBuildNumber=ci-${TRAVIS_BUILD_NUMBER} --label BaseimageBuildTime=${BUILD_TIME} -t ${DOCKER_TARGET} .
- bash ci-tools/version_check/version_check.sh
- docker images
deploy:
provider: script
script: ./ci-tools/build/upload-image.sh $ARTIFACT_NAME $TRAVIS_BRANCH
on:
all_branches: true