mirror of
https://codeberg.org/Codeberg/pages-server
synced 2024-09-19 23:28:30 +01:00
Compare commits
4 Commits
e9862ee4b0
...
65ffe80fa5
Author | SHA1 | Date | |
---|---|---|---|
|
65ffe80fa5 | ||
|
6ce17461e6 | ||
|
efd1adae0f | ||
|
bc9111a05f |
@ -18,6 +18,7 @@ steps:
|
||||
build:
|
||||
depends_on: vendor
|
||||
image: codeberg.org/6543/docker-images/golang_just
|
||||
pull: true
|
||||
commands:
|
||||
- go version
|
||||
- just build
|
||||
@ -29,7 +30,7 @@ steps:
|
||||
|
||||
docker-dryrun:
|
||||
depends_on: vendor
|
||||
image: woodpeckerci/plugin-docker-buildx:4.0.0
|
||||
image: woodpeckerci/plugin-docker-buildx:4.2.0
|
||||
settings:
|
||||
dockerfile: Dockerfile
|
||||
platforms: linux/amd64
|
||||
@ -45,6 +46,7 @@ steps:
|
||||
build-tag:
|
||||
depends_on: vendor
|
||||
image: codeberg.org/6543/docker-images/golang_just
|
||||
pull: true
|
||||
commands:
|
||||
- go version
|
||||
- just build-tag ${CI_COMMIT_TAG##v}
|
||||
@ -56,6 +58,7 @@ steps:
|
||||
test:
|
||||
depends_on: build
|
||||
image: codeberg.org/6543/docker-images/golang_just
|
||||
pull: true
|
||||
commands:
|
||||
- just test
|
||||
when:
|
||||
@ -66,6 +69,7 @@ steps:
|
||||
integration-tests:
|
||||
depends_on: build
|
||||
image: codeberg.org/6543/docker-images/golang_just
|
||||
pull: true
|
||||
commands:
|
||||
- just integration
|
||||
environment:
|
||||
@ -80,18 +84,13 @@ steps:
|
||||
|
||||
release:
|
||||
depends_on: build
|
||||
image: plugins/gitea-release:1.1.0
|
||||
image: woodpeckerci/plugin-release:0.1.0
|
||||
settings:
|
||||
base_url: https://codeberg.org
|
||||
file_exists: overwrite
|
||||
files: build/codeberg-pages-server
|
||||
api_key:
|
||||
from_secret: bot_token
|
||||
environment:
|
||||
- CI_REPO_OWNER=${CI_REPO_OWNER}
|
||||
- CI_REPO_NAME=${CI_REPO_NAME}
|
||||
- CI_BUILD_EVENT=${CI_BUILD_EVENT}
|
||||
- CI_COMMIT_REF=${CI_COMMIT_REF}
|
||||
when:
|
||||
- event: ['tag']
|
||||
branch:
|
||||
@ -99,7 +98,7 @@ steps:
|
||||
|
||||
docker-next:
|
||||
depends_on: vendor
|
||||
image: woodpeckerci/plugin-docker-buildx:4.0.0
|
||||
image: woodpeckerci/plugin-docker-buildx:4.2.0
|
||||
settings:
|
||||
registry: codeberg.org
|
||||
dockerfile: Dockerfile
|
||||
@ -115,7 +114,7 @@ steps:
|
||||
branch: ${CI_REPO_DEFAULT_BRANCH}
|
||||
|
||||
'Publish PR image':
|
||||
image: woodpeckerci/plugin-docker-buildx:3.2.1
|
||||
image: woodpeckerci/plugin-docker-buildx:4.2.0
|
||||
depends_on: test
|
||||
settings:
|
||||
registry: codeberg.org
|
||||
@ -133,7 +132,7 @@ steps:
|
||||
|
||||
docker-tag:
|
||||
depends_on: vendor
|
||||
image: woodpeckerci/plugin-docker-buildx:4.0.0
|
||||
image: woodpeckerci/plugin-docker-buildx:4.2.0
|
||||
settings:
|
||||
registry: codeberg.org
|
||||
dockerfile: Dockerfile
|
||||
|
@ -24,5 +24,5 @@ func (o *Options) setHeader(ctx *context.Context, header http.Header) {
|
||||
} else {
|
||||
ctx.RespWriter.Header().Set(gitea.ContentTypeHeader, mime)
|
||||
}
|
||||
ctx.RespWriter.Header().Set(headerLastModified, o.BranchTimestamp.In(time.UTC).Format(time.RFC1123))
|
||||
ctx.RespWriter.Header().Set(headerLastModified, o.BranchTimestamp.In(time.UTC).Format(http.TimeFormat))
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user