chore: ci test
continuous-integration/drone/tag Build is failing
Details
continuous-integration/drone/tag Build is failing
Details
This commit is contained in:
parent
e38d98a326
commit
445236538b
89
.drone.yml
89
.drone.yml
|
@ -11,101 +11,44 @@ steps:
|
||||||
image: golang
|
image: golang
|
||||||
commands:
|
commands:
|
||||||
- go get
|
- go get
|
||||||
|
- mkdir dist
|
||||||
- name: Building for Linux
|
- name: Building for Linux
|
||||||
image: golang
|
image: golang
|
||||||
environment:
|
environment:
|
||||||
GOOS: linux
|
GOOS: linux
|
||||||
GOARCH: amd64
|
GOARCH: amd64
|
||||||
commands:
|
commands:
|
||||||
- go build -v -o machinelock-manager-linux-amd64
|
- go build -v -o dist/machinelock-manager-linux-amd64
|
||||||
- name: Building for Windows
|
- name: Building for Windows
|
||||||
image: golang
|
image: golang
|
||||||
environment:
|
environment:
|
||||||
GOOS: windows
|
GOOS: windows
|
||||||
GOARCH: amd64
|
GOARCH: amd64
|
||||||
commands:
|
commands:
|
||||||
- go build -v -o machinelock-manager-windows-amd64
|
- go build -v -o dist/machinelock-manager-windows-amd64
|
||||||
- name: Building for Mac
|
- name: Building for Mac
|
||||||
image: golang
|
image: golang
|
||||||
environment:
|
environment:
|
||||||
GOOS: darwin
|
GOOS: darwin
|
||||||
GOARCH: amd64
|
GOARCH: amd64
|
||||||
commands:
|
commands:
|
||||||
- go build -v -o machinelock-manager-darwin-amd64
|
- go build -v -o dist/machinelock-manager-darwin-amd64
|
||||||
- name: Building for Mac Silicon
|
- name: Building for Mac Silicon
|
||||||
image: golang
|
image: golang
|
||||||
environment:
|
environment:
|
||||||
GOOS: darwing
|
GOOS: darwing
|
||||||
GOARCH: arm64
|
GOARCH: arm64
|
||||||
commands:
|
commands:
|
||||||
- go build -v -o machinelock-manager-darwin-arm64
|
- go build -v -o dist/machinelock-manager-darwin-arm64
|
||||||
|
- name: gitea release
|
||||||
|
image: plugins/gitea-release
|
||||||
|
settings:
|
||||||
|
api_key:
|
||||||
|
from_secret: token
|
||||||
|
base_url: https://git.ctdo.de
|
||||||
|
files: dist/*
|
||||||
|
checksum:
|
||||||
|
- md5
|
||||||
|
- sha1
|
||||||
|
- sha256
|
||||||
|
|
||||||
- name: Build Docker Container
|
|
||||||
image: plugins/docker
|
|
||||||
settings:
|
|
||||||
username:
|
|
||||||
from_secret: docker_user
|
|
||||||
password:
|
|
||||||
from_secret: docker_password
|
|
||||||
repo: reg.dre.li/itcreatesmedia/platform
|
|
||||||
tags: ${DRONE_BRANCH/master/latest}
|
|
||||||
registry: reg.dre.li
|
|
||||||
- name: Deploy container to production server
|
|
||||||
image: appleboy/drone-ssh
|
|
||||||
settings:
|
|
||||||
host: platform.itcreates.media
|
|
||||||
username: root
|
|
||||||
key:
|
|
||||||
from_secret: ssh_key
|
|
||||||
script:
|
|
||||||
- cd /srv/platform && docker-compose pull && docker-compose up -d
|
|
||||||
when:
|
|
||||||
branch:
|
|
||||||
- master
|
|
||||||
- name: Deploy container to alpha server
|
|
||||||
image: appleboy/drone-ssh
|
|
||||||
settings:
|
|
||||||
host: platform.itcreates.media
|
|
||||||
username: root
|
|
||||||
key:
|
|
||||||
from_secret: ssh_key
|
|
||||||
script:
|
|
||||||
- cd /srv/platform-alpha && docker-compose pull && docker-compose up -d
|
|
||||||
when:
|
|
||||||
branch:
|
|
||||||
- alpha
|
|
||||||
- name: semantic-release
|
|
||||||
image: henne/semantic-release
|
|
||||||
settings:
|
|
||||||
mode: release
|
|
||||||
git_user_name: drone
|
|
||||||
git_user_email: drone@itcreates.media
|
|
||||||
git_login: henne
|
|
||||||
git_password:
|
|
||||||
from_secret: gitea_password
|
|
||||||
environment:
|
|
||||||
GITEA_TOKEN:
|
|
||||||
from_secret: gitea_key
|
|
||||||
GITEA_URL: https://r.dre.li
|
|
||||||
when:
|
|
||||||
branch:
|
|
||||||
- master
|
|
||||||
|
|
||||||
- name: Notify Telegram
|
|
||||||
image: appleboy/drone-telegram
|
|
||||||
settings:
|
|
||||||
token:
|
|
||||||
from_secret: telegram_token
|
|
||||||
to: 27999067
|
|
||||||
message: >
|
|
||||||
{{#success build.status}}
|
|
||||||
Streaming-Platform: build {{build.number}} succeeded. Good job.
|
|
||||||
https://drone.dre.li/itcreatesmedia/streaming-platform-backend/{{build.number}}
|
|
||||||
{{else}}
|
|
||||||
build {{build.number}} failed. Fix me please.
|
|
||||||
https://drone.dre.li/itcreatesmedia/streaming-platform-backend/{{build.number}}
|
|
||||||
{{/success}}
|
|
||||||
when:
|
|
||||||
status:
|
|
||||||
- success
|
|
||||||
- failure
|
|
Loading…
Reference in New Issue