Skip to content
Snippets Groups Projects
Commit e91a2df5 authored by Dean Lovett's avatar Dean Lovett
Browse files

fix: Update .gitlab-ci.yml file

parent b895a28a
No related branches found
No related tags found
No related merge requests found
include:
- project: nexus-mods/devops/ci/nexus-auto-devops
file: /Build.gitlab-ci.yml
- project: nexus-mods/devops/ci/nexus-auto-devops
file: /Release.gitlab-ci.yml
- project: pub/nexus-code-quality
file: /code-quality-template.yaml
image: docker:latest
variables:
DOCKER_DRIVER: overlay2
IMAGE_NAME: gitlab.nexdev.uk:5555/pub/rails-base-image-builder
stages:
- prebuild
- test
- release
docker_lint:
stage: prebuild
stage: build
image: hadolint/hadolint:latest-debian
script:
# Ignoring DL3008 - Pin Versions of apt-get modules
- hadolint --ignore DL3008 Dockerfile
tags:
- nexus_runner
release:version:
image: gitlab.nexdev.uk:5555/pub/nexus-release-image/master
stage: release
before_script:
- eval $(ssh-agent -s)
- echo "$CI_DEPLOY_KEY" | tr -d '\r' | ssh-add -
- ssh-keyscan gitlab.nexdev.uk >> ~/.ssh/known_hosts
script:
- /build/release.sh --run-tag-pipeline
tags:
- nexus_runner
only:
- master
release_tag:
stage: release
script:
- docker login -u gitlab-ci-token -p $CI_JOB_TOKEN gitlab.nexdev.uk:5555
- docker build -t $IMAGE_NAME:$CI_COMMIT_REF_NAME .
- docker push $IMAGE_NAME:$CI_COMMIT_REF_NAME
only:
- tags
tags:
- nexus_runner
\ No newline at end of file
- nexus_runner
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment