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

47
.woodpecker/.dev.yml Normal file
View file

@ -0,0 +1,47 @@
pipeline:
download:
image: alpine
commands:
- apk add git
- git clone https://github.com/pixelfed/pixelfed.git
- git checkout ${BRANCH}
when:
path: ".ref"
docker:
image: plugins/docker
secrets:
- DOCKER_USERNAME
- DOCKER_PASSWORD
settings:
repo: spcodes/pixelfed
context: pixelfed
dockerfile: pixelfed/contrib/docker/Dockerfile.apache
tags:
- ${BRANCH}
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: pixelfed/contrib/docker/Dockerfile.apache
tags:
- ${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