Files
blog-ahmza-com/.gitlab-ci.yml
T

24 lines
691 B
YAML

image: jdrouet/docker-with-buildx:stable
variables:
DOCKER_HOST: tcp://docker:2375
DOCKER_DRIVER: overlay2
# Major.Minor.Release
# Major - Shouldn't change often, Big changes to the site
# Minor - starts from 0 when Major is incremented +1 for each version that goes public
# Release - For each time a development milestone is reached
VERSION: 1.0.0
IMAGE_TAG: $CI_REGISTRY_IMAGE:$VERSION
services:
- docker:dind
build:
stage: build
script:
- docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
- docker buildx create --use
- docker buildx build --no-cache --platform linux/arm64,linux/amd64 -t $IMAGE_TAG --push .
only:
- main