Commit baa6466a authored by Jason Yavorska's avatar Jason Yavorska Committed by Simon Steinbeiß
Browse files

Add xfce4-dev-tools build in addition to container build

parent 46f60426
# Set secrets as follows:
# CI_REGISTRY_USER=your_user
# CI_REGISTRY_PASSWORD=********
include:
- project: 'xfce/xfce4-dev-tools'
file: '/ci/build_project.yml'
variables:
CI_REGISTRY: "docker.io"
CI_REGISTRY_IMAGE: "index.docker.io/xfce/xfce-build"
DOCKER_TLS_CERTDIR: "/certs"
build:
# In addition to building xfce4-dev-tools itself, we build the xfce-build
# container and deploy it to DockerHub.
build-container:
variables:
CI_REGISTRY: "docker.io"
CI_REGISTRY_IMAGE: "index.docker.io/xfce/xfce-build"
DOCKER_TLS_CERTDIR: "/certs"
# Set secrets in project environment variables as follows:
# CI_REGISTRY_USER=your_user
# CI_REGISTRY_PASSWORD=********
IMAGE_TAG: $CI_REGISTRY_IMAGE:$CI_COMMIT_REF_SLUG
LATEST_TAG: $CI_REGISTRY_IMAGE:latest
image: docker:19.03.8
stage: build
# The container build is in the .pre stage in order to ensure it is
# subsequently used for the included build.
stage: .pre
services:
- docker:19.03.8-dind
variables:
IMAGE_TAG: $CI_REGISTRY_IMAGE:$CI_COMMIT_REF_SLUG
LATEST_TAG: $CI_REGISTRY_IMAGE:latest
script:
- docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
- docker build -t $IMAGE_TAG -t $LATEST_TAG .
......@@ -24,7 +29,8 @@ build:
# In any case, only push latest if we are building master.
- if [ $CI_COMMIT_BRANCH == "master" ]; then docker push $LATEST_TAG; else echo Skipping latest tag on non-master branch; fi
rules:
# Set to only run on the branches of the official repo and when there are relevant changes
# Set to only run on the branches of the official repo and when there
# are relevant changes
- if: '$CI_PROJECT_PATH == "xfce/xfce4-dev-tools"'
changes:
- "Dockerfile"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment