disabled docker build during CI

This commit is contained in:
infactum 2019-07-07 23:29:52 +05:00 committed by Infactum
parent 80bf430b08
commit f4495ede1b
2 changed files with 10 additions and 9 deletions

View File

@ -12,9 +12,6 @@ platform: x64
environment: environment:
global: global:
docker_login: infactum
docker_password:
secure: wWPsUiEtw8rfnjX2/Y3/AA==
docker_image: infactum/tg2sip-builder docker_image: infactum/tg2sip-builder
matrix: matrix:
@ -29,13 +26,9 @@ environment:
init: init:
- sh: | - sh: |
docker login -u "$docker_login" -p "$docker_password"
docker pull "$docker_image":"$docker_tag" docker pull "$docker_image":"$docker_tag"
install: build_script:
- sh: docker build buildenv/ -f buildenv/Dockerfile."$docker_tag" --cache-from "$docker_image":"$docker_tag" -t "$docker_image":"$docker_tag"
build_script:
- sh: >- - sh: >-
if [ "$target_name" != "AppImage" ] ; then if [ "$target_name" != "AppImage" ] ; then
mkdir build; mkdir build;
@ -74,7 +67,6 @@ build_script:
fi; fi;
after_build: after_build:
- sh: docker push "$docker_image":"$docker_tag"
- sh: >- - sh: >-
if [ "$target_name" != "AppImage" ] ; then if [ "$target_name" != "AppImage" ] ; then
appveyor PushArtifact tg2sip.zip -FileName tg2sip_"$docker_tag".zip -DeploymentName "TG2SIP $target_name" appveyor PushArtifact tg2sip.zip -FileName tg2sip_"$docker_tag".zip -DeploymentName "TG2SIP $target_name"

9
buildenv/prepare.sh Executable file
View File

@ -0,0 +1,9 @@
#!/bin/bash
DOCKER_IMAGE=infactum/tg2sip-builder
for DOCKER_TAG in bionic centos6 centos7
do
docker build . -f Dockerfile."$DOCKER_TAG" -t "$DOCKER_IMAGE:$DOCKER_TAG"
docker push "$DOCKER_IMAGE:$DOCKER_TAG"
done