Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
R
rails-base-image-builder
Manage
Activity
Members
Labels
Plan
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
Public
rails-base-image-builder
Commits
e91a2df5
Commit
e91a2df5
authored
2 years ago
by
Dean Lovett
Browse files
Options
Downloads
Patches
Plain Diff
fix: Update .gitlab-ci.yml file
parent
b895a28a
No related branches found
Branches containing commit
Tags
v1.1.0
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+6
-39
6 additions, 39 deletions
.gitlab-ci.yml
with
6 additions
and
39 deletions
.gitlab-ci.yml
+
6
−
39
View file @
e91a2df5
include
:
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
-
project
:
pub/nexus-code-quality
file
:
/code-quality-template.yaml
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
:
docker_lint
:
stage
:
pre
build
stage
:
build
image
:
hadolint/hadolint:latest-debian
image
:
hadolint/hadolint:latest-debian
script
:
script
:
# Ignoring DL3008 - Pin Versions of apt-get modules
# Ignoring DL3008 - Pin Versions of apt-get modules
-
hadolint --ignore DL3008 Dockerfile
-
hadolint --ignore DL3008 Dockerfile
tags
:
tags
:
-
nexus_runner
-
nexus_runner
\ No newline at end of file
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
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment