Commit 6c3d24c2 authored by nimrod's avatar nimrod
Browse files

Add a push job to the Docker Compose template.

An optional job to push to Docker Hub. Copied from the Docker Hub
template.
parent c96925a3
Loading
Loading
Loading
Loading
Loading
+10 −0
Original line number Diff line number Diff line
@@ -20,6 +20,16 @@ include:
    - docker-compose build --no-cache --pull
    - docker-compose pull --quiet

.compose-push:
  image: adarnimrod/ci-images:docker
  stage: deploy
  only:
    - branches
  before_script:
    - docker login --username adarnimrod --password "$DOCKER_HUB_TOKEN"
  script:
    - docker-compose push

.compose-run:
  image: adarnimrod/ci-images:docker
  stage: deploy