forked from drone-plugins/drone-s3
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.drone.yml
31 lines (29 loc) · 873 Bytes
/
.drone.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
kind: pipeline
name: docker-build
type: docker
environment:
ENV CGO_ENABLED: 0
ENV GOOS: linux
ENV GOARCH: loong64
steps:
- name: build
image: loongcr.lcpu.dev/lcpu/archlinux:base
volumes:
- name: dockersock
path: /var/run/user/1001/docker.sock
environment:
DOCKER_PASSWORD:
from_secret: docker_password
DOCKER_HOST: unix:///run/user/1001/docker.sock
commands:
- pacman -Sy --noconfirm && pacman -S --noconfirm docker go
- go get -u && go mod tidy && go build -a -o release/linux/loong64/drone-s3
- docker build -t loongcr.lcpu.dev/drone/s3:latest -f ./docker/Dockerfile.linux.loong64 .
- docker login -u="\$app" -p="$DOCKER_PASSWORD" loongcr.lcpu.dev
- docker push loongcr.lcpu.dev/drone/s3:latest
node:
size: small
volumes:
- name: dockersock
host:
path: /var/run/user/1001/docker.sock