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
|
||||
os: linux
|
||||
|
||||
stages:
|
||||
- name: build_docker
|
||||
if: branch =~ /^(master|dev|ng-.*)$/
|
||||
- name: publish_manifest
|
||||
if: branch =~ /^(master|dev|ng-.*)$/
|
||||
|
||||
jobs:
|
||||
include:
|
||||
- name: "Paperless on Python 3.6"
|
||||
@ -47,8 +53,6 @@ jobs:
|
||||
- echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin
|
||||
- docker build -f Dockerfile --tag=${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
|
||||
name: arm64v8 docker build
|
||||
services:
|
||||
@ -67,8 +71,6 @@ jobs:
|
||||
arch: arm64-graviton2
|
||||
virt: vm
|
||||
group: edge
|
||||
on:
|
||||
condition: '"${BUILD_DOCKER}" = 1 and ( branch =~ /^(master|dev|ng-.*)$/)'
|
||||
- stage: build_docker
|
||||
name: arm32v7 docker build
|
||||
services:
|
||||
@ -92,8 +94,6 @@ jobs:
|
||||
- docker push ${DOCKER_REPO}:${TRAVIS_COMMIT}-arm32v7
|
||||
env:
|
||||
- DOCKER_CLI_EXPERIMENTAL=enabled # required for manifest support
|
||||
on:
|
||||
condition: '"${BUILD_DOCKER}" = 1 and ( branch =~ /^(master|dev|ng-.*)$/)'
|
||||
- stage: publish_manifest
|
||||
env:
|
||||
- DOCKER_CLI_EXPERIMENTAL=enabled # required for manifest support
|
||||
@ -128,8 +128,6 @@ jobs:
|
||||
else
|
||||
echo "Not a tag and not on master, so not pushing tag/master specific manifest"
|
||||
fi
|
||||
on:
|
||||
condition: '"${BUILD_DOCKER}" = 1 and ( branch =~ /^(master|dev|ng-.*)$/)'
|
||||
|
||||
|
||||
before_install:
|
||||
|
Loading…
x
Reference in New Issue
Block a user