Skip to content

Commit

Permalink
Re-enable image building
Browse files Browse the repository at this point in the history
  • Loading branch information
nicksellen committed Mar 6, 2024
1 parent ac19ba5 commit 93bb8ff
Showing 1 changed file with 18 additions and 24 deletions.
42 changes: 18 additions & 24 deletions .woodpecker.yaml
@@ -1,16 +1,15 @@
services:
- name: "database"
- name: database
image: "postgres:14-alpine"
environment:
- POSTGRES_USER=karrot
- POSTGRES_DB=karrot
- POSTGRES_PASSWORD=karrot
- name: "redis"
- name: redis
image: "redis:6-alpine"

steps:
- name: "Test"
#image: "docker.io/karrot/python:3.1"
image: "codeberg.org/karrot/ci:796207fea50363b719ca6d5edaa497169988a07f"
environment:
- MODE=dev
Expand All @@ -21,29 +20,24 @@ steps:
- REDIS_HOST=redis
- SECRET_KEY=notverysecret
commands:
#- test -d env/bin || virtualenv -p python3 env
# The karrot/ci image provides a pre-made virtualenv for us
# shouldn't even need to activate it as the image sets the
# path already
#- . /app/venv/bin/activate
- ./sync.py
- mkdir -p test-reports
- pytest -n $(nproc) --cov=karrot --cov-report xml --junitxml=test-reports/junit.xml
when:
branch: master

# - name: "Build docker image"
# image: woodpeckerci/plugin-docker-buildx
# settings:
# platforms: linux/amd64
# repo: codeberg.org/${CI_REPO}
# registry: codeberg.org
# auto_tag: true
# username: ${CI_REPO_OWNER}
# password:
# from_secret: cb_token
# when:
# - event: push
# branch: master
# - event: tag
- branch: master
- event: tag

- name: "Build docker image"
image: woodpeckerci/plugin-docker-buildx
settings:
platforms: linux/amd64
repo: codeberg.org/${CI_REPO}
registry: codeberg.org
auto_tag: true
username: ${CI_REPO_OWNER}
password:
from_secret: cb_token
when:
- event: push
branch: master
- event: tag

0 comments on commit 93bb8ff

Please sign in to comment.