mirror of
https://gitlab.com/fabinfra/fabaccess/fabfire_adapter.git
synced 2025-03-12 14:51:50 +01:00
Update .gitlab-ci.yml
This commit is contained in:
parent
688f467b33
commit
15f7a949a4
@ -11,10 +11,17 @@
|
||||
|
||||
docker-build:
|
||||
# Use the official docker image.
|
||||
image: jdrouet/docker-with-buildx
|
||||
image: docker:latest
|
||||
tags:
|
||||
- docker
|
||||
- arm64
|
||||
- linux
|
||||
stage: build
|
||||
services:
|
||||
- docker:dind
|
||||
variables:
|
||||
DOCKER_TLS_CERTDIR: ""
|
||||
|
||||
before_script:
|
||||
- docker login -u "$CI_REGISTRY_USER" -p "$CI_REGISTRY_PASSWORD" $CI_REGISTRY
|
||||
# Default branch leaves tag empty (= latest tag)
|
||||
@ -28,8 +35,8 @@ docker-build:
|
||||
tag=":$CI_COMMIT_REF_SLUG"
|
||||
echo "Running on branch '$CI_COMMIT_BRANCH': tag = $tag"
|
||||
fi
|
||||
- docker buildx create --use
|
||||
- docker buildx build --push --platform linux/arm/v7,linux/arm64/v8,linux/386,linux/amd64 --tag "$CI_REGISTRY_IMAGE${tag}" .
|
||||
- docker build --pull -t "$CI_REGISTRY_IMAGE${tag}" .
|
||||
- docker push "$CI_REGISTRY_IMAGE${tag}"
|
||||
# Run this job in a branch where a Dockerfile exists
|
||||
rules:
|
||||
- if: $CI_COMMIT_BRANCH
|
||||
|
Loading…
x
Reference in New Issue
Block a user