Update .gitlab-ci.yml

This commit is contained in:
TheJoKlLa 2022-05-23 22:11:56 +00:00
parent 30bac93fcf
commit f8990dbb97

View File

@ -11,7 +11,11 @@
docker-build: docker-build:
# Use the official docker image. # Use the official docker image.
image: jonoh/docker-buildx-qemu image: docker:latest
tags:
- docker
- arm64
- linux
stage: build stage: build
services: services:
- docker:dind - docker:dind
@ -28,8 +32,8 @@ docker-build:
tag=":$CI_COMMIT_REF_SLUG" tag=":$CI_COMMIT_REF_SLUG"
echo "Running on branch '$CI_COMMIT_BRANCH': tag = $tag" echo "Running on branch '$CI_COMMIT_BRANCH': tag = $tag"
fi fi
- docker buildx create --use - docker build --pull -t "$CI_REGISTRY_IMAGE${tag}" .
- docker buildx build --push --platform linux/arm/v7,linux/386,linux/amd64 --tag "$CI_REGISTRY_IMAGE${tag}" . - docker push "$CI_REGISTRY_IMAGE${tag}"
# Run this job in a branch where a Dockerfile exists # Run this job in a branch where a Dockerfile exists
rules: rules:
- if: $CI_COMMIT_BRANCH - if: $CI_COMMIT_BRANCH