Compare commits

..

6 Commits

Author SHA1 Message Date
a6ecdb1d46 go test needs more memory now
All checks were successful
continuous-integration/drone/push Build is passing
2025-04-14 01:25:29 -07:00
72592e97b2 Upgrade to go 1.24
Some checks failed
continuous-integration/drone/push Build is failing
2025-04-12 18:57:57 -07:00
2df1862cdd Upgrade to go 1.23
All checks were successful
continuous-integration/drone/push Build is passing
2024-11-27 19:16:27 -08:00
c0c61a71c2 go 1.21.3
All checks were successful
continuous-integration/drone/push Build is passing
2023-10-22 17:08:40 -07:00
3489bd14fc Test that docker can be USER root
All checks were successful
continuous-integration/drone/push Build is passing
2023-06-12 11:16:45 -07:00
cb09f8818d Update Go and Alpine
All checks were successful
continuous-integration/drone/push Build is passing
2023-06-03 17:44:32 -07:00
4 changed files with 9 additions and 49 deletions

View File

@ -5,7 +5,7 @@ name: default
steps:
- name: test
image: golang:1.20.4
image: golang:1.24
commands:
- pwd
- go test -v
@ -18,24 +18,11 @@ steps:
resources:
limits:
cpu: 1000
memory: 300MiB
memory: 512MiB
requests:
cpu: 500
memory: 200MiB
- name: download
image: fedora:38
commands:
- ls; pwd
- ./scripts/download-release test/187 dist/
resources:
requests:
cpu: 250
memory: 64MiB
limits:
cpu: 250
memory: 256MiB
- name: read
pull: if-not-exists
image: alpine
@ -68,6 +55,6 @@ volumes:
---
kind: signature
hmac: 94513b436eb1b0ef9f1d1b0f128328f23bb343f1b9d9d6e7a0e80dacc22d3c48
hmac: 2b21527432d95cf52636c65e091d9129c198299a425d12b2860d468262234d62
...

View File

@ -1,8 +1,11 @@
FROM golang:1.16.4-alpine3.13 as builder
FROM golang:1.24-alpine3.21 as builder
WORKDIR /go/src/gitea.develooper.com/ask/drone-test
ADD . .
RUN CGO_ENABLED=1 GOOS=linux go build -o demo
FROM alpine:3.13 as production
FROM alpine:3.21 as production
USER root
COPY --from=builder /go/src/gitea.develooper.com/ask/drone-test/demo .
CMD ["./demo"]

2
go.mod
View File

@ -1,3 +1,3 @@
module gitea.develooper.com/ask/drone-test
go 1.16
go 1.23

View File

@ -1,30 +0,0 @@
#!/bin/bash
BUILD=$1
DIR=$2
set -euo pipefail
if [ -z "$DIR" ]; then
echo run with $0 BUILD_NUMBER DIR
exit 2
fi
mkdir -p $DIR
BASE=https://geodns.bitnames.com/monitor/builds/$BUILD
files=`curl -sSf $BASE/checksums.txt | awk '{print $2}'`
metafiles="checksums.txt metadata.json CHANGELOG.md artifacts.json"
for f in $metafiles; do
url=$BASE/$f
echo downloading $url
curl --remove-on-error -sSfRo $DIR/$f $url || true
done
for f in $files; do
url=$BASE/$f
echo downloading $url
curl --remove-on-error -sSfRo $DIR/$f $url
done