summaryrefslogtreecommitdiffstats
path: root/.forgejo/testdata
diff options
context:
space:
mode:
Diffstat (limited to '.forgejo/testdata')
-rw-r--r--.forgejo/testdata/build-release/Dockerfile6
-rw-r--r--.forgejo/testdata/build-release/Makefile5
-rw-r--r--.forgejo/testdata/build-release/go.mod3
-rw-r--r--.forgejo/testdata/build-release/modules/public/bindata.go0
-rw-r--r--.forgejo/testdata/build-release/public/assets/css/placeholder0
-rw-r--r--.forgejo/testdata/build-release/public/assets/fonts/placeholder0
-rw-r--r--.forgejo/testdata/build-release/public/assets/js/placeholder0
7 files changed, 14 insertions, 0 deletions
diff --git a/.forgejo/testdata/build-release/Dockerfile b/.forgejo/testdata/build-release/Dockerfile
new file mode 100644
index 0000000..9c44ded
--- /dev/null
+++ b/.forgejo/testdata/build-release/Dockerfile
@@ -0,0 +1,6 @@
+FROM code.forgejo.org/oci/alpine:3.20
+ARG RELEASE_VERSION=unkown
+LABEL maintainer="contact@forgejo.org" \
+ org.opencontainers.image.version="${RELEASE_VERSION}"
+RUN mkdir -p /app/gitea
+RUN ( echo '#!/bin/sh' ; echo "echo forgejo v$RELEASE_VERSION" ) > /app/gitea/forgejo-cli ; chmod +x /app/gitea/forgejo-cli
diff --git a/.forgejo/testdata/build-release/Makefile b/.forgejo/testdata/build-release/Makefile
new file mode 100644
index 0000000..406acd0
--- /dev/null
+++ b/.forgejo/testdata/build-release/Makefile
@@ -0,0 +1,5 @@
+VERSION ?= $(shell cat VERSION 2>/dev/null)
+sources-tarbal:
+ mkdir -p dist/release
+ echo $(VERSION) > VERSION
+ sources=forgejo-src-$(VERSION).tar.gz ; tar --transform 's|^./|forgejo-src-$(VERSION)/|' -czf dist/release/forgejo-src-$(VERSION).tar.gz . ; cd dist/release ; shasum -a 256 $$sources > $$sources.sha256
diff --git a/.forgejo/testdata/build-release/go.mod b/.forgejo/testdata/build-release/go.mod
new file mode 100644
index 0000000..1c44204
--- /dev/null
+++ b/.forgejo/testdata/build-release/go.mod
@@ -0,0 +1,3 @@
+module code.gitea.io/gitea
+
+go 1.23.2
diff --git a/.forgejo/testdata/build-release/modules/public/bindata.go b/.forgejo/testdata/build-release/modules/public/bindata.go
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/.forgejo/testdata/build-release/modules/public/bindata.go
diff --git a/.forgejo/testdata/build-release/public/assets/css/placeholder b/.forgejo/testdata/build-release/public/assets/css/placeholder
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/.forgejo/testdata/build-release/public/assets/css/placeholder
diff --git a/.forgejo/testdata/build-release/public/assets/fonts/placeholder b/.forgejo/testdata/build-release/public/assets/fonts/placeholder
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/.forgejo/testdata/build-release/public/assets/fonts/placeholder
diff --git a/.forgejo/testdata/build-release/public/assets/js/placeholder b/.forgejo/testdata/build-release/public/assets/js/placeholder
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/.forgejo/testdata/build-release/public/assets/js/placeholder