.gitlab-ci.yml 1.05 KB
Newer Older
Prada Sarasola, Miguel's avatar
Prada Sarasola, Miguel committed
1
2
shellcheck:
  image: koalaman/shellcheck-alpine
3
  script: shellcheck deploy/base/ros_entrypoint.bash scripts/*sh
4
5
  tags:
    - docker
6

7
8
9
10
11
12
13
# The ignored rules in hadolint checks are
# DL3006 Always tag the version of an image explicitly
#   One of the Dockerfiles uses a temporary image which isn't important to tag
#   and the other uses a tagged image through an ARG, which apparently is not
#   properly recognized.
# DL3008 Pin versions in apt-get install
#   A bit overkill
14
15
16
17
dockerfiles:
  image: hadolint/hadolint:latest-debian
  script:
    - RET=0
18
19
    - hadolint --ignore DL3006 --ignore DL3008 deploy/base/Dockerfile || RET=1
    - hadolint --ignore DL3006 --ignore DL3008 deploy/dev/Dockerfile || RET=1
20
    - exit $RET
21
22
  tags:
    - docker
23
24
25

yamllint:
  image: sdesbure/yamllint
26
  script: yamllint $(find . -name '*.yml' -o -name '*.yaml')
27
28
  tags:
    - docker
Jon Azpiazu's avatar
Jon Azpiazu committed
29
30
31
32
33
34

deploy_devcontainer:
  script:
    - tar cvfz dot_devcontainer.tar.gz -C vscode_devcontainer .devcontainer/
  artifacts:
    paths:
35
      - dot_devcontainer.tar.gz
Jon Azpiazu's avatar
Jon Azpiazu committed
36
    expire_in: 1 year
37
38
  tags:
    - docker