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

feat: added new ci pipeline

parent 1091787c
No related branches found
No related tags found
No related merge requests found
Pipeline #7047 failed
services:
- docker:dind
variables:
# explicit tag to be used within pipeline
BUILD_IMAGE_NAME: "$CI_REGISTRY_IMAGE/$CI_COMMIT_REF_SLUG:$CI_COMMIT_SHA"
# we also publish a floating tag to simplify manual testing
BUILD_IMAGE_NAME_LATEST: "$CI_REGISTRY_IMAGE/$CI_COMMIT_REF_SLUG:latest"
DOCKER_VERSION: 19.03.8
CI_APPLICATION_TAG: "$CI_COMMIT_SHA"
CI_APPLICATION_REPOSITORY: "$CI_REGISTRY_IMAGE/$CI_COMMIT_REF_SLUG/$CI_JOB_NAME"
stages:
- build
- test
- release
include:
- local: .gitlab/ci/build.gitlab-ci.yml
- local: .gitlab/ci/test.gitlab-ci.yml
build:
stage: build
image: "docker:${DOCKER_VERSION}"
services:
- "docker:${DOCKER_VERSION}-dind"
before_script:
- docker login -u "$CI_REGISTRY_USER" -p "$CI_REGISTRY_PASSWORD" "$CI_REGISTRY"
script:
- docker build --build-arg DOCKER_VERSION="$DOCKER_VERSION"
--tag "$BUILD_IMAGE_NAME"
--tag "$BUILD_IMAGE_NAME_LATEST"
.
- docker push "$BUILD_IMAGE_NAME"
- docker push "$BUILD_IMAGE_NAME_LATEST"
tags:
- nexus_runner
\ No newline at end of file
test-shellcheck:
stage: test
image: koalaman/shellcheck-alpine
needs: []
script:
- shellcheck src/release.sh
\ 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