mirror of
https://git.suyu.dev/suyu/ci-docker.git
synced 2026-01-10 08:28:22 +01:00
24 lines
672 B
YAML
24 lines
672 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
|
|
- cd linux
|
|
- docker build -f Dockerfile -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
|
|
- cd windows
|
|
- docker build -f Dockerfile -t ${CI_REGISTRY_IMAGE}:windows-x64 .
|
|
- docker push ${CI_REGISTRY_IMAGE}:windows-x64
|