Commit 515043ea authored by Pedro Eduardo Trujillo's avatar Pedro Eduardo Trujillo
Browse files

Restringe nodo de despliegue

parent 272f0d54
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
IMAGE_NAME=gitlab/gitlab-runner
IMAGE_TAG=alpine
PLACEMENT_CONSTRAINTS_NODE_HOSTNAME=hostname

CONFIG_FILE=/etc/gitlab-runner/config.toml
CI_SERVER_URL=https://gitlab.com/
+7 −0
Original line number Diff line number Diff line
version: '3.5'

services:
  gitlab-runner-registrar:
    deploy:
      placement:
        constraints:
          - node.hostname == ${PLACEMENT_CONSTRAINTS_NODE_HOSTNAME}

volumes:
  config-vol:
    name: ${CONFIG_VOL_NAME}
+7 −0
Original line number Diff line number Diff line
version: '3.5'

services:
  gitlab-runner:
    deploy:
      placement:
        constraints:
          - node.hostname == ${PLACEMENT_CONSTRAINTS_NODE_HOSTNAME}

volumes:
  config-vol:
    name: ${CONFIG_VOL_NAME}