Commit a02297ab authored by nanahira's avatar nanahira

fix

parent 3d6556b2
...@@ -5,13 +5,10 @@ stages: ...@@ -5,13 +5,10 @@ stages:
variables: variables:
GIT_DEPTH: "1" GIT_DEPTH: "1"
before_script:
- docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
prepare: prepare:
stage: prepare stage: prepare
tags: tags:
- docker - linux
script: script:
- apt update; apt -y install git git-lfs - apt update; apt -y install git git-lfs
- git lfs clone https://huggingface.co/spaces/hhhhardman/VITS-Umamusume-voice-synthesizer src - git lfs clone https://huggingface.co/spaces/hhhhardman/VITS-Umamusume-voice-synthesizer src
...@@ -22,7 +19,14 @@ prepare: ...@@ -22,7 +19,14 @@ prepare:
paths: paths:
- src - src
.docker:
before_script:
- docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
tags:
- docker
.build-image: .build-image:
extends: .docker
stage: build stage: build
dependencies: dependencies:
- prepare - prepare
...@@ -33,17 +37,14 @@ prepare: ...@@ -33,17 +37,14 @@ prepare:
build-x86: build-x86:
extends: .build-image extends: .build-image
tags:
- docker
variables: variables:
TARGET_IMAGE: $CI_REGISTRY_IMAGE:$CI_COMMIT_REF_SLUG TARGET_IMAGE: $CI_REGISTRY_IMAGE:$CI_COMMIT_REF_SLUG
.deploy: .deploy:
extends: .docker
stage: deploy stage: deploy
dependencies: [] dependencies: []
tags:
- docker
script: script:
- docker pull $CI_REGISTRY_IMAGE:$CI_COMMIT_REF_SLUG - docker pull $CI_REGISTRY_IMAGE:$CI_COMMIT_REF_SLUG
- docker tag $CI_REGISTRY_IMAGE:$CI_COMMIT_REF_SLUG $TARGET_IMAGE - docker tag $CI_REGISTRY_IMAGE:$CI_COMMIT_REF_SLUG $TARGET_IMAGE
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment