Skip to content

Commit

Permalink
feat: adds test stage
Browse files Browse the repository at this point in the history
Signed-off-by: wilmardo <[email protected]>
  • Loading branch information
wilmardo committed Jun 25, 2021
1 parent 0da3dd9 commit 0122c29
Showing 1 changed file with 12 additions and 6 deletions.
18 changes: 12 additions & 6 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,18 @@ variables:

include:
- template: Container-Scanning.gitlab-ci.yml
- remote: https://raw.githubusercontent.com/LANsible/gitlab-includes/master/docker-login.yml
- remote: https://raw.githubusercontent.com/LANsible/gitlab-includes/master/default.yml
- remote: https://raw.githubusercontent.com/LANsible/gitlab-includes/master/docker-build.yml
- remote: https://raw.githubusercontent.com/LANsible/gitlab-includes/master/sast-cis-benchmark.yml

stages:
- build
- test
- push
- manifest
test:
stage: test
tags:
- docker
variables:
DOCKER_IMAGE_NAME: ${CI_REGISTRY_IMAGE}
DOCKER_IMAGE_TAG: ${CI_COMMIT_SHA}-amd64
script:
- docker run ${DOCKER_IMAGE_NAME}:${DOCKER_IMAGE_TAG} --help
except:
- tags

0 comments on commit 0122c29

Please sign in to comment.