You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
hetzner-ansible/.gitlab-ci.yml

37 lines
1.1 KiB
YAML

# This file is a template, and might need editing before it works on your project.
# This file is a template demonstrating the `script` keyword.
# Learn more about this keyword here: https://docs.gitlab.com/ee/ci/yaml/README.html#script
# After committing this template, visit CI/CD > Jobs to see the script output.
image: docker-cache.dev-at.de/docker:19
stages:
- ansible-lint
- ansible-builder
ansible-lint-job:
stage: ansible-lint
before_script:
- pip install ansible-lint
image: dev-harbor-01.smardigo.digital/awx/awx-custom-ee:latest
script:
- echo "running ansible-lint to check for linting violations"
- /home/runner/.local/bin/ansible-lint
tags:
- dind
ansible-builder-job:
stage: ansible-builder
script:
- echo "running ansible-lint to check for linting violations"
# - ansible-builder build --tag dev-harbor-01.smardigo.digital/awx/awx-custom-ee:latest
# - docker login dev-harbor-01.smardigo.digital
# - docker tag XXXXXXXX dev-harbor-01.smardigo.digital/awx/awx-custom-ee:latest
# - docker push dev-harbor-01.smardigo.digital/awx/awx-custom-ee
tags:
- dind