Compare commits
7 Commits
Author | SHA1 | Date | |
---|---|---|---|
6aa2eee345 | |||
1d5cfb9fe7 | |||
2fcbf929b0 | |||
9e8b70ddab | |||
3f39e6deee | |||
fbc5facfaa | |||
399e6d3337 |
10
.drone.yml
10
.drone.yml
@ -5,11 +5,11 @@ name: build
|
|||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: docker
|
- name: docker
|
||||||
image: plugins/docker
|
image: code.pztrn.name/containers/mirror/plugins/docker:20.13.0
|
||||||
settings:
|
settings:
|
||||||
username:
|
registry: code.pztrn.name
|
||||||
from_secret: dockerhub_user
|
username: drone
|
||||||
password:
|
password:
|
||||||
from_secret: dockerhub_password
|
from_secret: drone_secret
|
||||||
repo: pztrn/drone-nolimit
|
repo: code.pztrn.name/containers/drone-nolimit
|
||||||
auto_tag: true
|
auto_tag: true
|
||||||
|
@ -1,15 +1,15 @@
|
|||||||
FROM golang:1.17.5-alpine as build
|
FROM code.pztrn.name/containers/mirror/golang:1.18.3-alpine as build
|
||||||
|
|
||||||
ENV DRONE_VERSION=2.7.2
|
ENV DRONE_VERSION=2.16.0
|
||||||
|
|
||||||
RUN apk add -U --no-cache ca-certificates git build-base
|
RUN apk add -U --no-cache ca-certificates git build-base
|
||||||
RUN mkdir -p /src/drone && \
|
RUN mkdir -p /src/drone && \
|
||||||
cd /src/drone && \
|
cd /src/drone && \
|
||||||
git clone https://github.com/drone/drone . && \
|
git clone https://github.com/harness/drone . && \
|
||||||
git checkout -b v${DRONE_VERSION}
|
git checkout -b v${DRONE_VERSION}
|
||||||
RUN cd /src/drone/cmd/drone-server && go build -tags "nolimit" -ldflags "-extldflags \"-static\"" -o drone-server
|
RUN cd /src/drone/cmd/drone-server && go build -tags "nolimit" -ldflags "-extldflags \"-static\"" -o drone-server
|
||||||
|
|
||||||
FROM alpine:3.14
|
FROM code.pztrn.name/containers/mirror/alpine:3.16.1
|
||||||
|
|
||||||
EXPOSE 80 443
|
EXPOSE 80 443
|
||||||
VOLUME /data
|
VOLUME /data
|
||||||
|
Loading…
Reference in New Issue
Block a user