Skip to content
Snippets Groups Projects
Commit 9d7a386b authored by Fortune Iriaye's avatar Fortune Iriaye
Browse files

Update .gitlab-ci.yml file

parent f9b06a62
No related branches found
No related tags found
No related merge requests found
Pipeline #12235 canceled with stage
in 1 minute and 4 seconds
default:
image: docker:latest
stages:
- build
variables:
PACKAGE_NAME: "gnina"
DOCKER_IMAGE: "$CI_REGISTRY_IMAGE/$PACKAGE_NAME"
DOCKER_TLS_CERTDIR: "/certs"
before_script:
- unset DOCKER_HOST
- echo "${CI_REGISTRY_PASSWORD}" | docker login -u "${CI_REGISTRY_USER}" --password-stdin ${CI_REGISTRY}
push_docker_image:
stage: build
services:
- docker:dind
script:
- docker build -t $DOCKER_IMAGE:$CI_COMMIT_SHORT_SHA -f docker/Dockerfile .
- docker push $DOCKER_IMAGE:$CI_COMMIT_SHORT_SHA
only:
- main # Only run on the main branch
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