Commits (4)
......@@ -9,7 +9,6 @@ variables:
- 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}
echo "Not pushing image, as we are on non-master branch $CI_COMMIT_REF_NAME"
# 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)"
<<: *base_build
allow_failure: true
# 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
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
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