50 lines
1,016 B
YAML
50 lines
1,016 B
YAML
pipeline:
|
|
download:
|
|
image: alpine
|
|
commands:
|
|
- apk add git
|
|
- git clone https://github.com/pixelfed/pixelfed.git
|
|
- cd pixelfed
|
|
- git checkout ${BRANCH}
|
|
when:
|
|
branch: main
|
|
event:
|
|
- push
|
|
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
|