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
when:
branch: main
event:
- push
docker:
image: plugins/docker
secrets:
- DOCKER_USERNAME
- DOCKER_PASSWORD
settings:
repo: spcodes/pixelfed
context: .
dockerfile: contrib/docker/Dockerfile.apache
tags:
- ${VERSION}
- latest
cr:
- source: CR_USERNAME
target: DOCKER_USERNAME
- source: CR_PASSWORD
target: DOCKER_PASSWORD
registry: cr.sp-codes.de
repo: cr.sp-codes.de/pixelfed
matrix:
VERSION:
- v0.11.2