-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitlab-ci.yml
38 lines (35 loc) · 1020 Bytes
/
.gitlab-ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
stages:
- check
- build_push
check_version:
stage: check
image: alpine
rules:
- if: $CI_COMMIT_TAG
before_script:
- "apk add yq"
script:
- "./check_version_and_changelog.sh"
docker_buildx:
stage: build_push
rules:
- if: $CI_COMMIT_TAG
tags:
- docker
- real-dind
image: docker:cli
before_script:
- docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
- docker buildx create --name one-time-service-builder --use --bootstrap --driver docker-container
script:
- docker buildx build --platform linux/amd64,linux/arm64,linux/arm/v7 --build-arg ADDON_VERSION=${CI_COMMIT_TAG} -t ${CI_REGISTRY_IMAGE}/multiarch:${CI_COMMIT_TAG} --push --provenance false .
after_script:
- docker buildx rm one-time-service-builder
#docker_homeassistant_builder:
# stage: build
# image: homeassistant/amd64-builder
# script:
# - --amd64 --aarch64 --armv7 -t .
#
# The home assistant builder currently doesn't support
# pushing to custom registries!