updated to run in podman pipeline
Some checks reported errors
continuous-integration/drone Build was killed
Some checks reported errors
continuous-integration/drone Build was killed
This commit is contained in:
10
.drone.yml
10
.drone.yml
@@ -1,5 +1,5 @@
|
||||
kind: pipeline
|
||||
type: docker
|
||||
type: podman
|
||||
name: linux-arm64
|
||||
|
||||
platform:
|
||||
@@ -21,12 +21,12 @@ steps:
|
||||
CGO_ENABLED: "0"
|
||||
commands:
|
||||
- go mod download
|
||||
- go build -o release/linux/arm64/drone-runner-docker
|
||||
- go build -o release/linux/arm64/drone-runner-podman
|
||||
- name: publish
|
||||
image: plugins/docker
|
||||
pull: if-not-exists
|
||||
settings:
|
||||
repo: cr.wks/drone/drone-runner-docker
|
||||
repo: cr.wks/drone/drone-runner-podman
|
||||
registry: http://cr.wks
|
||||
insecure: true
|
||||
auto_tag: true
|
||||
@@ -34,11 +34,11 @@ steps:
|
||||
dockerfile: docker/Dockerfile.linux.arm64
|
||||
when:
|
||||
ref:
|
||||
- refs/heads/master
|
||||
- refs/heads/main
|
||||
- refs/tags/*
|
||||
|
||||
trigger:
|
||||
ref:
|
||||
- refs/heads/master
|
||||
- refs/heads/main
|
||||
- refs/tags/**
|
||||
- refs/pull/**
|
||||
|
||||
@@ -1,21 +1,18 @@
|
||||
FROM alpine:3 as alpine
|
||||
FROM alpine as alpine
|
||||
RUN apk add -U --no-cache ca-certificates
|
||||
RUN apk add bash mount psutils
|
||||
|
||||
RUN wget https://github.com/tmate-io/tmate/releases/download/2.4.0/tmate-2.4.0-static-linux-arm64v8.tar.xz
|
||||
RUN tar -xf tmate-2.4.0-static-linux-arm64v8.tar.xz
|
||||
RUN mv tmate-2.4.0-static-linux-arm64v8/tmate /bin/
|
||||
RUN chmod +x /bin/tmate
|
||||
|
||||
FROM scratch
|
||||
EXPOSE 3000
|
||||
|
||||
ENV GODEBUG netdns=go
|
||||
ENV DRONE_PLATFORM_OS linux
|
||||
ENV DRONE_PLATFORM_ARCH arm64
|
||||
|
||||
COPY --from=alpine /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/
|
||||
COPY --from=alpine /bin/tmate /bin/
|
||||
|
||||
LABEL com.centurylinklabs.watchtower.stop-signal="SIGINT"
|
||||
|
||||
ADD release/linux/arm64/drone-runner-podman /bin/
|
||||
|
||||
Reference in New Issue
Block a user