mirror of
https://git.suyu.dev/suyu/ci-docker.git
synced 2025-12-21 21:36:02 +01:00
22 lines
654 B
YAML
22 lines
654 B
YAML
stages:
|
|
- build
|
|
|
|
build linux x64:
|
|
stage: build
|
|
image: docker
|
|
services:
|
|
- docker:dind
|
|
script:
|
|
- echo $CI_REGISTRY_PASSWORD | docker login -u $CI_REGISTRY_USER $CI_REGISTRY --password-stdin
|
|
- docker build -f Dockerfile-linux -t ${CI_REGISTRY_IMAGE}:linux-x64 .
|
|
- docker push ${CI_REGISTRY_IMAGE}:linux-x64
|
|
|
|
build windows x64:
|
|
stage: build
|
|
image: docker
|
|
services:
|
|
- docker:dind
|
|
script:
|
|
- echo $CI_REGISTRY_PASSWORD | docker login -u $CI_REGISTRY_USER $CI_REGISTRY --password-stdin
|
|
- docker build -f Dockerfile-windows -t ${CI_REGISTRY_IMAGE}:windows-x64 .
|
|
- docker push ${CI_REGISTRY_IMAGE}:windows-x64
|