-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.travis.yml
101 lines (95 loc) · 3.72 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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
language: python
stages:
- name: image
if: branch = main AND type != pull_request
- name: multiarch
if: branch = main AND type != pull_request
- name: deploy-to-dev
if: branch = main AND type != pull_request
- name: new-git-release
if: tag is present
before_script:
- export DOCKER_REGISTRY=${DOCKER_REGISTRY:-quay.io}
- export IMAGE_NAME=${IMAGE_NAME:-/st4sd/official-base/st4sd-datastore}
- export IMAGE_BASE_URL="${DOCKER_REGISTRY}${IMAGE_NAME}"
- export RUNTIMECORE_IMAGE_NAME=${ROOT_IMAGE_NAME:-/st4sd/official-base/st4sd-runtime-core}
- export RUNTIMECORE_URL="${DOCKER_REGISTRY}${RUNTIMECORE_IMAGE_NAME}"
jobs:
include:
# VV: TODO Get rid of the python 3.7 image
- stage: image
services:
- docker
env:
- BUILD_PYTHON_VERSION=37
script:
- docker login -u "${DOCKER_USERNAME}" -p "${DOCKER_TOKEN}" "${DOCKER_REGISTRY}"
- docker build --pull -t ${IMAGE_BASE_URL}:py${BUILD_PYTHON_VERSION}-latest-`arch` -f Dockerfile .
--build-arg base_image=${RUNTIMECORE_URL}:py${BUILD_PYTHON_VERSION}-latest-`arch`
- docker push ${IMAGE_BASE_URL}:py${BUILD_PYTHON_VERSION}-latest-`arch`
os: linux
python: "3.7"
- stage: image
services:
- docker
env:
- BUILD_PYTHON_VERSION=310
script:
- docker login -u "${DOCKER_USERNAME}" -p "${DOCKER_TOKEN}" "${DOCKER_REGISTRY}"
- docker build --pull -t ${IMAGE_BASE_URL}:py${BUILD_PYTHON_VERSION}-latest-`arch` -f Dockerfile .
--build-arg base_image=${RUNTIMECORE_URL}:py${BUILD_PYTHON_VERSION}-latest-`arch`
- docker push ${IMAGE_BASE_URL}:py${BUILD_PYTHON_VERSION}-latest-`arch`
os: linux
python: "3.10"
# VV: Disable PPC64LE builds because we do not have a PPC64LE build for the base layer (st4sd-runtime-core)
#- stage: image
# services:
# - docker
# script:
# - docker login -u "${DOCKER_USERNAME}" -p "${DOCKER_TOKEN}" "${DOCKER_REGISTRY}"
# - docker build --pull -t ${IMAGE_BASE_URL}:latest-`arch` -f Dockerfile .
# --build-arg base_image=${RUNTIMECORE_URL}
# - docker push ${IMAGE_BASE_URL}:latest-`arch`
# os: linux-ppc64le
- stage: multiarch
os: linux
python: "3.10"
env:
- BUILD_PYTHON_VERSION=310
script:
- export SRC_TAG_X8664="py${BUILD_PYTHON_VERSION}-latest-x86_64"
- export DST_TAG_X8664="py${BUILD_PYTHON_VERSION}-x86_64"
# VV: Disable ppc64le builds for now
#- export SRC_TAG_PPC64LE="latest-ppc64le"
#- export DST_TAG_PPC64LE="ppc64le"
- export LABEL="latest"
- ./deploy/build_multiarch.sh
# VV: TODO Get rid of python 3.7 image
- stage: multiarch
os: linux
python: "3.7"
env:
- BUILD_PYTHON_VERSION=37
script:
- export SRC_TAG_X8664="py${BUILD_PYTHON_VERSION}-latest-x86_64"
- export DST_TAG_X8664="py${BUILD_PYTHON_VERSION}-x86_64"
# VV: Disable ppc64le builds for now
#- export SRC_TAG_PPC64LE="latest-ppc64le"
#- export DST_TAG_PPC64LE="ppc64le"
- export LABEL="py${BUILD_PYTHON_VERSION}-latest"
- ./deploy/build_multiarch.sh
- stage: deploy-to-dev
os: linux
env:
DEPLOY_TO="VE-5446-dev"
script:
- ./deploy/redeploy_deploymentconfig.sh
"${VE_5446_DEV_PROJECT}" "${VE_5446_DEV_LOGIN_URL}" "${VE_5446_DEV_LOGIN_TOKEN}"
- stage: new-git-release
os: linux
services: docker
script:
- docker run --rm -it
--env DOCKER_REGISTRY --env DOCKER_TOKEN --env DOCKER_USERNAME
-v `pwd`/deploy:/scripts -w /scripts --entrypoint /scripts/skopeo_copy.sh quay.io/skopeo/stable
${IMAGE_BASE_URL}:latest ${IMAGE_BASE_URL}:release-candidate