mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2024-11-22 18:01:02 +00:00
publish arm32 and arm64 agent images
This commit is contained in:
parent
39b74e172e
commit
cebe0d2f8b
4 changed files with 39 additions and 1 deletions
|
@ -23,4 +23,6 @@ git clone git@github.com:drone/drone-enterprise.git extras
|
|||
|
||||
# build a static binary with the build number and extra features.
|
||||
go build -ldflags '-extldflags "-static" -X github.com/drone/drone/version.VersionDev=build.'${DRONE_BUILD_NUMBER} -o release/drone-server github.com/drone/drone/extras/cmd/drone-server
|
||||
GOOS=linux GOARCH=amd64 CGO_ENABLED=0 go build -ldflags '-X github.com/drone/drone/version.VersionDev=build.'${DRONE_BUILD_NUMBER} -o release/drone-agent github.com/drone/drone/cmd/drone-agent
|
||||
GOOS=linux GOARCH=amd64 CGO_ENABLED=0 go build -ldflags '-X github.com/drone/drone/version.VersionDev=build.'${DRONE_BUILD_NUMBER} -o release/drone-agent github.com/drone/drone/cmd/drone-agent
|
||||
GOOS=linux GOARCH=arm64 CGO_ENABLED=0 go build -ldflags '-X github.com/drone/drone/version.VersionDev=build.'${DRONE_BUILD_NUMBER} -o release/linux/arm64/drone-agent github.com/drone/drone/cmd/drone-agent
|
||||
GOOS=linux GOARCH=arm CGO_ENABLED=0 GOARM=7 go build -ldflags '-X github.com/drone/drone/version.VersionDev=build.'${DRONE_BUILD_NUMBER} -o release/linux/arm/drone-agent github.com/drone/drone/cmd/drone-agent
|
||||
|
|
20
.drone.yml
20
.drone.yml
|
@ -56,6 +56,26 @@ pipeline:
|
|||
branch: master
|
||||
event: push
|
||||
|
||||
publish_agent_arm:
|
||||
image: plugins/docker
|
||||
repo: drone/agent
|
||||
dockerfile: Dockerfile.agent.linux.arm
|
||||
secrets: [ docker_username, docker_password ]
|
||||
tag: [ linux-arm ]
|
||||
when:
|
||||
branch: master
|
||||
event: push
|
||||
|
||||
publish_agent_arm64:
|
||||
image: plugins/docker
|
||||
repo: drone/agent
|
||||
dockerfile: Dockerfile.agent.linux.arm64
|
||||
secrets: [ docker_username, docker_password ]
|
||||
tag: [ linux-arm64 ]
|
||||
when:
|
||||
branch: master
|
||||
event: push
|
||||
|
||||
release_server:
|
||||
image: plugins/docker
|
||||
repo: drone/drone
|
||||
|
|
8
Dockerfile.agent.linux.arm
Normal file
8
Dockerfile.agent.linux.arm
Normal file
|
@ -0,0 +1,8 @@
|
|||
# docker build --rm -t drone/drone .
|
||||
|
||||
FROM centurylink/ca-certs
|
||||
ENV GODEBUG=netdns=go
|
||||
ENV DRONE_PLATFORM=linux/arm
|
||||
ADD release/linux/arm/drone-agent /bin/
|
||||
|
||||
ENTRYPOINT ["/bin/drone-agent"]
|
8
Dockerfile.agent.linux.arm64
Normal file
8
Dockerfile.agent.linux.arm64
Normal file
|
@ -0,0 +1,8 @@
|
|||
# docker build --rm -t drone/drone .
|
||||
|
||||
FROM centurylink/ca-certs
|
||||
ENV GODEBUG=netdns=go
|
||||
ENV DRONE_PLATFORM=linux/arm64
|
||||
ADD release/linux/arm64/drone-agent /bin/
|
||||
|
||||
ENTRYPOINT ["/bin/drone-agent"]
|
Loading…
Reference in a new issue