Skip to content
Snippets Groups Projects
Commit 2ca725a3 authored by Nandan Sadineni's avatar Nandan Sadineni
Browse files

Merge branch 'nsadineni/test-ci' into 'main'

Nsadineni/test ci

See merge request it-common-platform/support/images/aws-kubectl!1
parents 2e08288d 9a1c1eca
Branches
Tags
1 merge request!1Nsadineni/test ci
Pipeline #206110 canceled with stage
stages:
- build
- test
- release
variables:
CONTAINER_TEST_IMAGE: $CI_REGISTRY_IMAGE:$CI_COMMIT_SHORT_SHA
CONTAINER_RELEASE_IMAGE: $CI_REGISTRY_IMAGE:latest
before_script:
- docker login -u $CI_DEPLOY_USER -p $CI_DEPLOY_PASSWORD $CI_REGISTRY
build-except-master:
stage: build
script:
- docker build -t $CONTAINER_TEST_IMAGE .
- docker push $CONTAINER_TEST_IMAGE
only:
- branches
except:
- master
test:
stage: test
script:
- docker pull $CONTAINER_TEST_IMAGE
- docker run $CONTAINER_TEST_IMAGE /bin/sh
only:
- branches
except:
- master
release-image:
stage: release
script:
- docker pull $CONTAINER_TEST_IMAGE
- docker tag $CONTAINER_TEST_IMAGE $CONTAINER_RELEASE_IMAGE
- docker push $CONTAINER_RELEASE_IMAGE
only:
- master
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment