...
 
Commits (4)
......@@ -9,7 +9,6 @@ variables:
stages:
- distro
- rustc
# Expects $IMAGE which should be the name+tag of the registry image.
# Expects $OCI_YML variable which should be the path to the dockerfile
......@@ -19,7 +18,12 @@ stages:
- cd ${DIR}
- docker login -u gitlab-ci-token -p $CI_JOB_TOKEN $CI_REGISTRY
- docker build --pull -f ${OCI_YML} -t ${IMAGE} .
- docker push ${IMAGE}
- |
if [ "$CI_COMMIT_REF_NAME" = "master" ]; then
docker push ${IMAGE}
else
echo "Not pushing image, as we are on non-master branch $CI_COMMIT_REF_NAME"
fi
# Expects $ARCH variable which should be the architexcture of the image ex. x86_64
# Expects $DISTRO_NAME variable which should be the name of the distro image ex. ubuntu
......@@ -31,7 +35,6 @@ stages:
- export NAMESPACE="$(echo "${CI_PROJECT_NAMESPACE}" | tr A-Z a-z)"
- export IMAGE=${CI_REGISTRY}/${NAMESPACE}/${CI_PROJECT_NAME}/${ARCH}/${DISTRO_NAME}:${DISTRO_VER}
<<: *base_build
allow_failure: true
fedora:latest:
variables:
......
# Tracker container images
This repository builds container images suitable for building and testing
the [Tracker](https://gitlab.gnome.org/GNOME/tracker) and [Tracker
Miners](https://gitlab.gnome.org/GNOME/tracker-miners) projects.
Images are pushed to this project's [Docker
registry](https://gitlab.gnome.org/sthursfield/tracker-oci-images/container_registry)
automatically when changes are merged to the 'master' branch.
## Using the images in CI
To use these images in a GitLab CI pipeline, set the `image` key in the
`.gitlab-ci.yml` file to point to one of the images in this project's
repository:
image: registry.gitlab.gnome.org/sthursfield/tracker-oci-images/amd64/fedora:latest
## Using the images locally
You can also try out images on your local machine. Here is an example which
opens a shell inside a Docker container:
docker run -i -t registry.gitlab.gnome.org/sthursfield/tracker-oci-images/amd64/fedora:latest /bin/bash