mirror of
https://github.com/friendica/docker
synced 2025-04-23 07:17:03 +02:00
Auto building Docker images after merge
This commit is contained in:
parent
f7c06fa240
commit
ea3be956d6
3 changed files with 18 additions and 0 deletions
1
.bashbrew/flags
Normal file
1
.bashbrew/flags
Normal file
|
@ -0,0 +1 @@
|
|||
Namespace: friendica
|
10
.travis.yml
10
.travis.yml
|
@ -13,6 +13,9 @@ stages:
|
|||
# full test for master
|
||||
- name: test images (full)
|
||||
if: branch = master
|
||||
# build and push for master
|
||||
- name: deploy
|
||||
if: branch = master
|
||||
|
||||
install:
|
||||
- git clone https://github.com/docker-library/official-images.git ~/official-images
|
||||
|
@ -83,3 +86,10 @@ jobs:
|
|||
- env: VERSION=2018.12-rc VARIANT=fpm ARCH=i386
|
||||
- env: VERSION=2018.12-rc VARIANT=apache ARCH=amd64
|
||||
- env: VERSION=2018.12-rc VARIANT=apache ARCH=i386
|
||||
|
||||
- stage: deploy
|
||||
env: SCRIPT=build_and_push.sh
|
||||
script: skip
|
||||
deploy:
|
||||
provider: script
|
||||
script: ./build_and_push.sh
|
||||
|
|
7
build_and_push.sh
Executable file
7
build_and_push.sh
Executable file
|
@ -0,0 +1,7 @@
|
|||
#!/bin/bash
|
||||
set -e
|
||||
|
||||
echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin
|
||||
./generate-stackbrew-library.sh > server
|
||||
bashbrew --config .bashbrew/ --library ./ build server
|
||||
bashbrew --config .bashbrew/ --library ./ push server
|
Loading…
Add table
Reference in a new issue