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

Update .gitlab-ci.yml file

parent 9aa959ec
No related branches found
No related tags found
No related merge requests found
Pipeline #12207 failed with stage
in 1 minute and 11 seconds
default:
image: docker:26.0.1-dind
image: docker:26.0.1
stages:
- build
......@@ -7,17 +7,30 @@ stages:
variables:
PACKAGE_NAME: "alphafold"
DOCKER_IMAGE: "$CI_REGISTRY_IMAGE/$PACKAGE_NAME"
DOCKER_TLS_CERTDIR: "/certs"
before_script:
- unset DOCKER_HOST
- docker login -u "$CI_REGISTRY_USER" -p "$CI_REGISTRY_PASSWORD" $CI_REGISTRY
DOCKER_TLS_CERTDIR: ""
DOCKER_HOST: tcp://docker:2375
DOCKER_DRIVER: overlay2
DOCKER_BUILDKIT: 1 # Enable BuildKit for efficient builds
push_docker_image:
stage: build
image: docker:26.0.1-dind
image: docker:26.0.1
services:
- name: docker:26.0.1-dind
alias: docker
command:
- "--dns=8.8.8.8"
- "--dns=8.8.4.4"
- "--storage-driver=overlay2"
- "--default-ulimit=memlock=-1"
before_script:
# Use a temporary Docker config directory
- export DOCKER_CONFIG=$(mktemp -d)
# Securely log in to Docker registry
- echo "$CI_REGISTRY_PASSWORD" | docker login -u "$CI_REGISTRY_USER" --password-stdin $CI_REGISTRY
script:
- docker build -t $DOCKER_IMAGE:$CI_COMMIT_SHORT_SHA -f docker/Dockerfile .
# Build the Docker image with increased memory and CPU
- docker build --memory=8g --cpus=4 -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
- main # Run only 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