Commit 29729b68 authored by nanahira's avatar nanahira

fix

parent 2ddb14da
Pipeline #15905 failed with stages
in 5 seconds
stages:
- fetch
- build
- deploy
variables:
GIT_DEPTH: "1"
before_script:
- docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
.docker-op:
before_script:
- docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
fetch_source:
stage: fetch
tags:
- linux
script:
- git clone --depth=1 -b $GO_CQHTTP_VERSION https://github.com/Mrs4s/go-cqhttp
- rm -rf go-cqhttp/.git*
- echo 'CMD [ "-faststart" ]' >> go-cqhttp/Dockerfile
artifacts:
paths:
- ./go-cqhttp
.build-image:
extends: .docker-op
dependencies:
- fetch_source
stage: build
script:
- cd go-cqhttp
- docker build --pull -t $TARGET_IMAGE .
- docker push $TARGET_IMAGE
......@@ -28,6 +46,7 @@ build-arm:
TARGET_IMAGE: $CI_REGISTRY_IMAGE:$CI_COMMIT_REF_SLUG-arm
.deploy:
extends: .docker-op
stage: deploy
tags:
- docker
......
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