-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
53 lines (47 loc) · 1.52 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
language: go
services:
- docker
go:
- 1.21.x
install: []
stages:
- name: aux-branch-image
if: branch != main AND tag is blank
- name: image-push
if: branch = main AND type != pull_request
- name: catalog-push
if: tag is present
env:
- BUILDKIT_PROGRESS=plain
matrix:
include:
- stage: aux-branch-image
install:
- docker login -u "${DOCKER_USERNAME}" -p "${DOCKER_TOKEN}" "${DOCKER_REGISTRY}"
script:
- export DOCKER_REGISTRY=${DOCKER_REGISTRY:-quay.io}
- export IMAGE_NAME=${IMAGE_NAME:-/st4sd/official-base/st4sd-olm}
- export IMAGE_TAG_BASE="${DOCKER_REGISTRY}${IMAGE_NAME}"
- export IMAGE_PUSH=yes
- export OVERRIDE_VERSION=${TRAVIS_BRANCH}
- go version
- ./scripts/build.sh
- stage: image-push
install:
- docker login -u "${DOCKER_USERNAME}" -p "${DOCKER_TOKEN}" "${DOCKER_REGISTRY}"
script:
- export DOCKER_REGISTRY=${DOCKER_REGISTRY:-quay.io}
- export IMAGE_NAME=${IMAGE_NAME:-/st4sd/official-base/st4sd-olm}
- export IMAGE_TAG_BASE="${DOCKER_REGISTRY}${IMAGE_NAME}"
- export IMAGE_PUSH=yes
- ./scripts/build.sh
- stage: catalog-push
install:
- docker login -u "${DOCKER_USERNAME}" -p "${DOCKER_TOKEN}" "${DOCKER_REGISTRY}"
script:
- export DOCKER_REGISTRY=${DOCKER_REGISTRY:-quay.io}
- export IMAGE_NAME=${IMAGE_NAME:-/st4sd/official-base/st4sd-olm}
- export IMAGE_TAG_BASE="${DOCKER_REGISTRY}${IMAGE_NAME}"
- export CATALOG_IMG=${IMAGE_TAG_BASE}-catalog:latest
- export CATALOG_PUSH=yes
- ./scripts/catalog.sh