* building docker image in gitlab-ci
@ 2021-05-26 16:57 Marek Marczykowski-Górecki
0 siblings, 0 replies; only message in thread
From: Marek Marczykowski-Górecki @ 2021-05-26 16:57 UTC (permalink / raw)
To: Stefano Stabellini, Doug Goldstein; +Cc: xen-devel
[-- Attachment #1: Type: text/plain, Size: 911 bytes --]
Hi,
Regarding our chat few minutes ago - this is part of the .gitlab-ci.yml,
that builds and pushed containers, that is later used for other tests:
variables:
CONTAINER_TEST_IMAGE: ...
build:
stage: build
image: docker/compose:latest
services:
- docker:dind
script:
- cd ci
- docker-compose build
- docker tag <whatever-docker-compose-produced> $CONTAINER_TEST_IMAGE
- docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
- docker push $CONTAINER_TEST_IMAGE
I use docker-compose here, but it doesn't really matter. It pushes to
the container registry conveniently provided by gitlab too :)
In my case I build trigger it via push to a specific branch, but
connecting to schedule should be trivial too.
--
Best Regards,
Marek Marczykowski-Górecki
Invisible Things Lab
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 488 bytes --]
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2021-05-26 16:58 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-05-26 16:57 building docker image in gitlab-ci Marek Marczykowski-Górecki
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.