Container with Golang, golangci-lint and prebuilt tdlib. Useful for building and linting Golang apps using Telegram client libraries.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

26 lines
477B

  1. image: docker:stable
  2. variables:
  3. DOCKER_HOST: tcp://docker:2375/
  4. DOCKER_DRIVER: overlay2
  5. CONTAINER_NAME: lab.wtfteam.pro:4567/containers/tdlib-go
  6. services:
  7. - docker:dind
  8. stages:
  9. - build
  10. before_script:
  11. - docker login -u gitlab-ci-token -p $CI_JOB_TOKEN $CI_REGISTRY
  12. build:
  13. stage: build
  14. script:
  15. - source ci/set_docker_tag.sh
  16. - docker build -t $CONTAINER_NAME:$DOCKER_TAG .
  17. - docker push $CONTAINER_NAME:$DOCKER_TAG
  18. only:
  19. - tags
  20. - master