Commit 29729b68 authored by nanahira's avatar nanahira

fix

parent 2ddb14da
Pipeline #15905 failed with stages
in 5 seconds
stages: stages:
- fetch
- build - build
- deploy - deploy
variables: variables:
GIT_DEPTH: "1" GIT_DEPTH: "1"
before_script: .docker-op:
- docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY 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: .build-image:
extends: .docker-op
dependencies:
- fetch_source
stage: build stage: build
script: script:
- cd go-cqhttp
- docker build --pull -t $TARGET_IMAGE . - docker build --pull -t $TARGET_IMAGE .
- docker push $TARGET_IMAGE - docker push $TARGET_IMAGE
...@@ -28,6 +46,7 @@ build-arm: ...@@ -28,6 +46,7 @@ build-arm:
TARGET_IMAGE: $CI_REGISTRY_IMAGE:$CI_COMMIT_REF_SLUG-arm TARGET_IMAGE: $CI_REGISTRY_IMAGE:$CI_COMMIT_REF_SLUG-arm
.deploy: .deploy:
extends: .docker-op
stage: deploy stage: deploy
tags: tags:
- docker - 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