mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-04-02 13:45:10 -05:00
Use conditions to prevent builds on branches / tags other than master, dev and ng-*
This commit is contained in:
parent
8135de49f0
commit
0560ac2a95
10
.travis.yml
10
.travis.yml
@ -48,7 +48,7 @@ jobs:
|
|||||||
- 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:
|
on:
|
||||||
condition: '"${BUILD_DOCKER}" = 1'
|
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:
|
||||||
@ -68,8 +68,7 @@ jobs:
|
|||||||
virt: vm
|
virt: vm
|
||||||
group: edge
|
group: edge
|
||||||
on:
|
on:
|
||||||
condition: '"${BUILD_DOCKER}" = 1'
|
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:
|
||||||
@ -94,8 +93,7 @@ jobs:
|
|||||||
env:
|
env:
|
||||||
- DOCKER_CLI_EXPERIMENTAL=enabled # required for manifest support
|
- DOCKER_CLI_EXPERIMENTAL=enabled # required for manifest support
|
||||||
on:
|
on:
|
||||||
condition: '"${BUILD_DOCKER}" = 1'
|
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
|
||||||
@ -131,7 +129,7 @@ jobs:
|
|||||||
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:
|
on:
|
||||||
condition: '"${BUILD_DOCKER}" = 1'
|
condition: '"${BUILD_DOCKER}" = 1 and ( branch =~ /^(master|dev|ng-.*)$/)'
|
||||||
|
|
||||||
|
|
||||||
before_install:
|
before_install:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user