Trying to automate building the flatpak docker image build

This commit is contained in:
Sumner Evans
2019-10-27 21:56:14 -06:00
parent 8911d8886b
commit 2f8c114b79
2 changed files with 17 additions and 1 deletions

View File

@@ -1,4 +1,5 @@
stages:
- build-containers
- test
- build
- deploy
@@ -47,7 +48,7 @@ build:
- dist/*
build_flatpak:
image: registry.gitlab.com/sumner/sublime-music/sublime-music/build:latest
image: registry.gitlab.com/sumner/sublime-music/flatpak-build:latest
stage: build
script:
- cd flatpak
@@ -78,3 +79,18 @@ verify_deploy:
- master
script:
- pip3 install libremsonic
# Create the Docker image for Flatpak builds.
docker:image:
image: docker:1.13
only:
variables:
- $REBUILD_FLATPAK_DOCKER == "True"
services:
- docker:dind
script:
- docker version
- docker build -t $CI_REGISTRY_IMAGE/flatpak-build:latest ./cicd/flatpak-build
- docker login -u gitlab-ci-token -p $CI_BUILD_TOKEN $CI_REGISTRY
- docker push $CI_REGISTRY_IMAGE/build
stage: build-containers