Skip to content
.gitlab-ci.yml 659 B
Newer Older
stages:
  - build
  - deploy

build_docker_image:
  stage: build
  image: docker:24.0.5
Dimitrios Giannopoulos's avatar
Dimitrios Giannopoulos committed
  variables:
Dimitrios Giannopoulos's avatar
Dimitrios Giannopoulos committed
  #   DOCKER_DRIVER: overlay2
Dimitrios Giannopoulos's avatar
Dimitrios Giannopoulos committed
    DOCKER_HOST: tcp://localhost:2375
    # DOCKER_TLS_CERTDIR: ""
Dimitrios Giannopoulos's avatar
Dimitrios Giannopoulos committed
  # services:
  #   - name: docker:24.0.4-dind
  #     alias: docker
  before_script:
Dimitrios Giannopoulos's avatar
Dimitrios Giannopoulos committed
    - docker info
  script:
    - docker login -u "$CI_REGISTRY_USER" -p "$CI_REGISTRY_PASSWORD" $CI_REGISTRY
    - docker build -t $CI_REGISTRY_IMAGE:$CI_COMMIT_REF_SLUG -f Dockerfile.tmfapi .
    - docker push $CI_REGISTRY_IMAGE:$CI_COMMIT_REF_SLUG

deploy:
  stage: deploy
  image: maven:3.9.5-ibm-semeru-17-focal
  script:
    - mvn deploy -s ci_settings.xml -DskipTests