mirror of
https://gitee.com/rainbond/Rainbond.git
synced 2024-12-12 13:45:15 +08:00
Merge branch 'V5.4' into pr/path-rewrite
This commit is contained in:
commit
7f2c4549b1
48
.drone.yml
Normal file
48
.drone.yml
Normal file
@ -0,0 +1,48 @@
|
|||||||
|
kind: pipeline
|
||||||
|
name: build arm64
|
||||||
|
|
||||||
|
platform:
|
||||||
|
os: linux
|
||||||
|
arch: arm64
|
||||||
|
|
||||||
|
trigger:
|
||||||
|
event:
|
||||||
|
include:
|
||||||
|
- custom
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: build rainbond
|
||||||
|
image: rainbond/docker:dind
|
||||||
|
privileged: true
|
||||||
|
volumes:
|
||||||
|
- name: dockersock
|
||||||
|
path: /var/run
|
||||||
|
environment:
|
||||||
|
DOMESTIC_BASE_NAME:
|
||||||
|
from_secret: domestic_base_name
|
||||||
|
DOMESTIC_DOCKER_USERNAME:
|
||||||
|
from_secret: domestic_docker_username
|
||||||
|
DOMESTIC_DOCKER_PASSWORD:
|
||||||
|
from_secret: domestic_docker_password
|
||||||
|
BUILD_VERSION:
|
||||||
|
from_secret: build_version
|
||||||
|
GOOS: linux
|
||||||
|
GOARCH: arm64
|
||||||
|
commands:
|
||||||
|
- sleep 10 # give docker enough time to start
|
||||||
|
- VERSION=$BUILD_VERSION BUILD_GOARCH=arm64 BUILD_BASE_IMAGE_VERSION=3.7 ./release.sh all push
|
||||||
|
when:
|
||||||
|
event:
|
||||||
|
include:
|
||||||
|
- custom
|
||||||
|
services:
|
||||||
|
- name: docker
|
||||||
|
image: docker:dind
|
||||||
|
privileged: true
|
||||||
|
volumes:
|
||||||
|
- name: dockersock
|
||||||
|
path: /var/run
|
||||||
|
|
||||||
|
volumes:
|
||||||
|
- name: dockersock
|
||||||
|
temp: {}
|
@ -116,8 +116,9 @@ build::image() {
|
|||||||
if [ "$2" = "push" ]; then
|
if [ "$2" = "push" ]; then
|
||||||
if [ $DOCKER_USERNAME ]; then
|
if [ $DOCKER_USERNAME ]; then
|
||||||
docker login -u "$DOCKER_USERNAME" -p "$DOCKER_PASSWORD"
|
docker login -u "$DOCKER_USERNAME" -p "$DOCKER_PASSWORD"
|
||||||
|
docker push "${IMAGE_BASE_NAME}/rbd-$1:${VERSION}"
|
||||||
fi
|
fi
|
||||||
docker push "${IMAGE_BASE_NAME}/rbd-$1:${VERSION}"
|
|
||||||
if [ "${DOMESTIC_BASE_NAME}" ]; then
|
if [ "${DOMESTIC_BASE_NAME}" ]; then
|
||||||
docker tag "${IMAGE_BASE_NAME}/rbd-$1:${VERSION}" "${DOMESTIC_BASE_NAME}/${DOMESTIC_NAMESPACE}/rbd-$1:${VERSION}"
|
docker tag "${IMAGE_BASE_NAME}/rbd-$1:${VERSION}" "${DOMESTIC_BASE_NAME}/${DOMESTIC_NAMESPACE}/rbd-$1:${VERSION}"
|
||||||
docker login -u "$DOMESTIC_DOCKER_USERNAME" -p "$DOMESTIC_DOCKER_PASSWORD" "${DOMESTIC_BASE_NAME}"
|
docker login -u "$DOMESTIC_DOCKER_USERNAME" -p "$DOMESTIC_DOCKER_PASSWORD" "${DOMESTIC_BASE_NAME}"
|
||||||
|
Loading…
Reference in New Issue
Block a user