Skip to content
This repository has been archived by the owner on Sep 1, 2022. It is now read-only.
/ govcms-ci Public archive

a CI base image for GovCMS - docker pull quay.io/govcms/govcms-ci

Notifications You must be signed in to change notification settings

govCMS/govcms-ci

Repository files navigation

govcms-ci

This is a base image intended for use in CI processes.

CircleCI

It is based on the amazee.io PHP (Drupal) image, with the addition of some extra tooling.

To build the CI image locally for a single platform, run the following:

IMAGE_TAG={your-desired-tag} docker buildx bake --progress=plain --pull --set ci.platform=linux/{arm64/amd64} -f bake.hcl ci --print
IMAGE_TAG={your-desired-tag} docker buildx bake --progress=plain --pull --set ci.platform=linux/{arm64/amd64} -f bake.hcl ci

To build the CI on multi-arch, you first need to create a buildx builder instance.

docker buildx create --name multiarch-amd-arm --platform linux/amd64,linux/arm64 --use
IMAGE_TAG={your-desired-tag} docker buildx bake --progress=plain --pull -f bake.hcl ci --print
IMAGE_TAG={your-desired-tag} docker buildx bake --progress=plain --pull -f bake.hcl ci
IMAGE_TAG={your-desired-tag} docker buildx bake --progress=plain --pull -f bake.hcl ci --push

Ansible creator image

Ansible creator contains the tools required for linting and testing Ansible playbooks.

The image pull is failing for some reason on Gitlab, so it has to be built locally.

CREATOR_EE_VERSION=${CREATOR_EE_VERSION:-v0.5.2}
git clone -b ${CREATOR_EE_VERSION} https://github.com/ansible/creator-ee.git
cd creator-ee
docker build -t gitlab-registry-production.govcms.amazee.io/govcms/govcms-ci/ansible-creator-ee:${CREATOR_EE_VERSION} .
docker push gitlab-registry-production.govcms.amazee.io/govcms/govcms-ci/ansible-creator-ee:${CREATOR_EE_VERSION}