mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-04-02 13:45:10 -05:00
Move build condition into separate stages list
This commit is contained in:
parent
0560ac2a95
commit
61834581d5
14
.travis.yml
14
.travis.yml
@ -3,6 +3,12 @@ language: python
|
|||||||
dist: focal
|
dist: focal
|
||||||
os: linux
|
os: linux
|
||||||
|
|
||||||
|
stages:
|
||||||
|
- name: build_docker
|
||||||
|
if: branch =~ /^(master|dev|ng-.*)$/
|
||||||
|
- name: publish_manifest
|
||||||
|
if: branch =~ /^(master|dev|ng-.*)$/
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
include:
|
include:
|
||||||
- name: "Paperless on Python 3.6"
|
- name: "Paperless on Python 3.6"
|
||||||
@ -47,8 +53,6 @@ jobs:
|
|||||||
- echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin
|
- echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin
|
||||||
- docker build -f Dockerfile --tag=${DOCKER_REPO}:${TRAVIS_COMMIT}-amd64 .
|
- docker build -f Dockerfile --tag=${DOCKER_REPO}:${TRAVIS_COMMIT}-amd64 .
|
||||||
- docker push ${DOCKER_REPO}:${TRAVIS_COMMIT}-amd64
|
- docker push ${DOCKER_REPO}:${TRAVIS_COMMIT}-amd64
|
||||||
on:
|
|
||||||
condition: '"${BUILD_DOCKER}" = 1 and ( branch =~ /^(master|dev|ng-.*)$/)'
|
|
||||||
- stage: build_docker
|
- stage: build_docker
|
||||||
name: arm64v8 docker build
|
name: arm64v8 docker build
|
||||||
services:
|
services:
|
||||||
@ -67,8 +71,6 @@ jobs:
|
|||||||
arch: arm64-graviton2
|
arch: arm64-graviton2
|
||||||
virt: vm
|
virt: vm
|
||||||
group: edge
|
group: edge
|
||||||
on:
|
|
||||||
condition: '"${BUILD_DOCKER}" = 1 and ( branch =~ /^(master|dev|ng-.*)$/)'
|
|
||||||
- stage: build_docker
|
- stage: build_docker
|
||||||
name: arm32v7 docker build
|
name: arm32v7 docker build
|
||||||
services:
|
services:
|
||||||
@ -92,8 +94,6 @@ jobs:
|
|||||||
- docker push ${DOCKER_REPO}:${TRAVIS_COMMIT}-arm32v7
|
- docker push ${DOCKER_REPO}:${TRAVIS_COMMIT}-arm32v7
|
||||||
env:
|
env:
|
||||||
- DOCKER_CLI_EXPERIMENTAL=enabled # required for manifest support
|
- DOCKER_CLI_EXPERIMENTAL=enabled # required for manifest support
|
||||||
on:
|
|
||||||
condition: '"${BUILD_DOCKER}" = 1 and ( branch =~ /^(master|dev|ng-.*)$/)'
|
|
||||||
- stage: publish_manifest
|
- stage: publish_manifest
|
||||||
env:
|
env:
|
||||||
- DOCKER_CLI_EXPERIMENTAL=enabled # required for manifest support
|
- DOCKER_CLI_EXPERIMENTAL=enabled # required for manifest support
|
||||||
@ -128,8 +128,6 @@ jobs:
|
|||||||
else
|
else
|
||||||
echo "Not a tag and not on master, so not pushing tag/master specific manifest"
|
echo "Not a tag and not on master, so not pushing tag/master specific manifest"
|
||||||
fi
|
fi
|
||||||
on:
|
|
||||||
condition: '"${BUILD_DOCKER}" = 1 and ( branch =~ /^(master|dev|ng-.*)$/)'
|
|
||||||
|
|
||||||
|
|
||||||
before_install:
|
before_install:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user