Build images using buildx plugin and automatically push on main branch

This commit is contained in:
Andrejs Cunskis 2022-05-10 17:17:46 +03:00
parent 5a79c03924
commit fe331541d7
No known key found for this signature in database
GPG key ID: 87CB75083F227241
15 changed files with 213 additions and 357 deletions

View file

@ -4,12 +4,11 @@ include:
- local: '.gitlab/ci/*.yml'
default:
image: docker:20.10.14-git
image: ${CI_REGISTRY_IMAGE}/debian-bullseye:docker-20.10.14-buildx-0.8
services:
- docker:20.10.14-dind
before_script:
- docker login -u "$CI_REGISTRY_USER" -p "$CI_REGISTRY_PASSWORD" "$CI_REGISTRY"
- apk add -U bash
tags:
- gitlab-org-docker
@ -22,9 +21,10 @@ stages:
- automation
variables:
DOCKER_DRIVER: overlay2
DOCKER_HOST: tcp://docker:2375
DOCKER_BUILDKIT: 1
DOCKER_HOST: tcp://docker:2376
DOCKER_TLS_CERTDIR: /certs
DOCKER_CERT_PATH: /certs/client
DOCKER_TLS_VERIFY: 1
cache-google-chrome:
image: debian:bullseye-slim