-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
73 lines (63 loc) · 2.53 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
services:
- docker
os: linux
stages:
- name: image
if: branch = main AND type != pull_request
- name: multiarch
if: branch = main AND type != pull_request
- name: new-git-release
if: tag is present
language: minimal
install: []
before_script:
- export DOCKER_REGISTRY=${DOCKER_REGISTRY:-quay.io}
- export IMAGE_NAME=${IMAGE_NAME:-/st4sd/official-base/st4sd-runtime-k8s-input-s3}
- 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}"
matrix:
include:
- stage: image
os: linux
python: "3.10"
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`
# VV: Disabling PPC64LE builds for now
#- stage: image
# os: linux-ppc64le
# 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`
- 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"
- ./travis_build/build_multiarch.sh
- stage: new-git-release
os: linux
services: docker
script:
- export DOCKER_CLI_EXPERIMENTAL=enabled
- docker login -u $DOCKER_USERNAME -p $DOCKER_TOKEN $DOCKER_REGISTRY
- docker manifest create ${IMAGE_BASE_URL}:${TRAVIS_TAG}
${IMAGE_BASE_URL}:x86_64 # ${IMAGE_BASE_URL}:ppc64le
- docker manifest push ${IMAGE_BASE_URL}:${TRAVIS_TAG}
- docker manifest create ${IMAGE_BASE_URL}:release-candidate
${IMAGE_BASE_URL}:x86_64 # ${IMAGE_BASE_URL}:ppc64le
- docker manifest push ${IMAGE_BASE_URL}:release-candidate