請使用 Linux 或 MacOS 來進行 Drone 實戰,如果你是使用 Windows 環境,請務必裝好 VM 或者是使用 Digital Ocean 機器。Do 機器可以使用小時計費 可以選用最小方案 $20/month,每小時大約 0.03 美金。請務必先安裝底下兩項軟體:
- Docker 服務
- docker-compose 指令。
version: '2' | |
services: | |
drone-server: | |
image: drone/drone:0.8 | |
ports: | |
- 8080:8000 | |
- 9000:9000 | |
volumes: | |
- ./:/var/lib/drone/ |
請使用 Linux 或 MacOS 來進行 Drone 實戰,如果你是使用 Windows 環境,請務必裝好 VM 或者是使用 Digital Ocean 機器。Do 機器可以使用小時計費 可以選用最小方案 $20/month,每小時大約 0.03 美金。請務必先安裝底下兩項軟體:
package main | |
import ( | |
"fmt" | |
"log" | |
"golang.org/x/crypto/bcrypt" | |
) | |
func main() { |
scp_dev: | |
image: appleboy/drone-scp | |
pull: true | |
host: example.com | |
port: 22 | |
username: deploy | |
target: /home/deploy/drone/${DRONE_REPO} | |
secrets: | |
- source: deploy_key | |
target: scp_key |
version: "3" | |
networks: | |
traefik: | |
external: true | |
internal: | |
internal: true | |
volumes: | |
minio: |
Gitea is a painless self-hosted Git service. It is similar to GitHub, Bitbucket or Gitlab. The initial development have been done on Gogs but we have forked it and named it Gitea. If you want to read more about the reasons why we have done that please read this blog post.
Download Gitea binary from download page first.
$ wget https://dl.gitea.io/gitea/1.1.0/gitea-1.1.0-linux-amd64 -O gitea
#!/bin/sh | |
### BEGIN INIT INFO | |
# Provides: gitea | |
# Required-Start: $syslog $network mysql | |
# Required-Stop: $syslog | |
# Default-Start: 2 3 4 5 | |
# Default-Stop: 0 1 6 | |
# Short-Description: A self-hosted Git service written in Go. | |
# Description: A self-hosted Git service written in Go. | |
### END INIT INFO |
// Place your settings in this file to overwrite the default settings | |
{ | |
// Controls if the editor should automatically format the pasted content. A formatter must be available and the formatter should be able to format a range in a document. | |
"editor.formatOnPaste": true, | |
// Control the cursor animation style, possible values are 'blink', 'smooth', 'phase', 'expand' and 'solid' | |
"editor.cursorBlinking": "solid", | |
// Controls the font family. | |
"editor.fontFamily": "Fira Code", |
公司:联发科技(合肥)有限公司
工作地点:230088 合肥市黄山路622号资讯产业基地软件研究中心B座
招聘职位: Web 后端开发
福利待遇: 正式员工: 8K-15K、14薪、五险一金
学历: bachelor (含)以上
Trigger from {{ build.author }} |