updated different versions
Some checks failed
ci/woodpecker/push/dev Pipeline failed
ci/woodpecker/push/release Pipeline failed

This commit is contained in:
Samuel Philipp 2022-01-15 01:29:16 +01:00
parent 9303a882d6
commit aae5f5135b
4 changed files with 70 additions and 3 deletions

1
.ref Normal file
View file

@ -0,0 +1 @@
8077ded2ddb34b185cbe9c57f59f5a4c9919635c

View file

@ -4,6 +4,9 @@ pipeline:
commands:
- apk add git
- git clone https://github.com/pixelfed/pixelfed.git
- git checkout ${BRANCH}
when:
path: ".ref"
docker:
image: plugins/docker
secrets:
@ -14,7 +17,7 @@ pipeline:
context: pixelfed
dockerfile: pixelfed/contrib/docker/Dockerfile.apache
tags:
- latest
- ${BRANCH}
when:
branch: main
event:
@ -32,8 +35,13 @@ pipeline:
context: pixelfed
dockerfile: pixelfed/contrib/docker/Dockerfile.apache
tags:
- latest
- ${BRANCH}
when:
branch: main
event:
- push
matrix:
BRANCH:
- dev
- staging

45
.woodpecker/.release.yml Normal file
View file

@ -0,0 +1,45 @@
pipeline:
download:
image: alpine
commands:
- apk add curl tar
- curl -L "https://github.com/pixelfed/pixelfed/archive/refs/tags/${VERSION}.tar.gz" | tar xvz --strip 1
docker:
image: plugins/docker
secrets:
- DOCKER_USERNAME
- DOCKER_PASSWORD
settings:
repo: spcodes/pixelfed
context: pixelfed
dockerfile: contrib/docker/Dockerfile.apache
tags:
- ${VERSION}
- latest
when:
branch: main
event:
- push
cr:
image: plugins/docker
secrets:
- source: CR_USERNAME
target: DOCKER_USERNAME
- source: CR_PASSWORD
target: DOCKER_PASSWORD
settings:
registry: cr.sp-codes.de
repo: cr.sp-codes.de/pixelfed
context: pixelfed
dockerfile: contrib/docker/Dockerfile.apache
tags:
- ${VERSION}
- latest
when:
branch: main
event:
- push
matrix:
VERSION:
- v0.11.1

View file

@ -6,5 +6,18 @@
"main"
],
"rangeStrategy": "bump",
"rebaseWhen": "behind-base-branch"
"rebaseWhen": "behind-base-branch",
"regexManagers": [
{
"fileMatch": [
".ref"
],
"matchStrings": [
"(?<currentValue>)(?<currentDigest>.*?)"
],
"depNameTemplate": "https://github.com/pixelfed/pixelfed.git",
"versioningTemplate": "git",
"datasourceTemplate": "git-refs"
}
]
}