Merge pull request 'Add building nightly images' (#8) from nightly-images into master
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
Reviewed-on: #8
This commit is contained in:
commit
e6a13fa4c9
@ -22,10 +22,29 @@ steps:
|
|||||||
- pip_token
|
- pip_token
|
||||||
when:
|
when:
|
||||||
event: tag
|
event: tag
|
||||||
publish-image:
|
nightly-image:
|
||||||
image: woodpeckerci/plugin-docker-buildx
|
image: woodpeckerci/plugin-docker-buildx
|
||||||
|
privileged: true
|
||||||
settings:
|
settings:
|
||||||
dockerfile: Dockerfile
|
dockerfile: Dockerfile.nightly
|
||||||
|
registry: git.snyman.info
|
||||||
|
username: $DOCKER_USERNAME
|
||||||
|
password: $DOCKER_TOKEN
|
||||||
|
repo: git.snyman.info/${CI_REPO_OWNER}/codesmidgen
|
||||||
|
tags:
|
||||||
|
- nightly
|
||||||
|
- ${CI_COMMIT_SHA:0:8}
|
||||||
|
secrets:
|
||||||
|
- docker_username
|
||||||
|
- docker_token
|
||||||
|
when:
|
||||||
|
- branch: master
|
||||||
|
event: push
|
||||||
|
release-image:
|
||||||
|
image: woodpeckerci/plugin-docker-buildx
|
||||||
|
privileged: true
|
||||||
|
settings:
|
||||||
|
dockerfile: Dockerfile.release
|
||||||
registry: git.snyman.info
|
registry: git.snyman.info
|
||||||
username: $DOCKER_USERNAME
|
username: $DOCKER_USERNAME
|
||||||
password: $DOCKER_TOKEN
|
password: $DOCKER_TOKEN
|
||||||
@ -37,4 +56,5 @@ steps:
|
|||||||
- docker_username
|
- docker_username
|
||||||
- docker_token
|
- docker_token
|
||||||
when:
|
when:
|
||||||
event: tag
|
- branch: master
|
||||||
|
event: tag
|
||||||
|
9
Dockerfile.nightly
Normal file
9
Dockerfile.nightly
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
FROM python:3.11
|
||||||
|
|
||||||
|
WORKDIR /app
|
||||||
|
ADD . /app
|
||||||
|
RUN pip install -e .
|
||||||
|
RUN pip install hypercorn
|
||||||
|
|
||||||
|
EXPOSE 8000
|
||||||
|
CMD ["hypercorn", "codesmidgen.app"]
|
Loading…
Reference in New Issue
Block a user