Add CI configuration for automated image deployment
Some checks failed
ci/woodpecker/push/ci Pipeline failed
Some checks failed
ci/woodpecker/push/ci Pipeline failed
This commit is contained in:
20
.woodpecker/ci.yaml
Normal file
20
.woodpecker/ci.yaml
Normal file
@@ -0,0 +1,20 @@
|
||||
when:
|
||||
- event: push
|
||||
branch: main
|
||||
- event: cron
|
||||
cron: "upgrade base image"
|
||||
|
||||
steps:
|
||||
- name: deploy
|
||||
image: debian:trixie
|
||||
commands:
|
||||
- apt update
|
||||
- apt install -y buildah podman
|
||||
- sudo podman login -d docker.io -u $DOCKER_USERNAME -p $DOCKER_PASSWORD
|
||||
- chmod +x ./push-image.sh
|
||||
- ./push-image.sh
|
||||
environment:
|
||||
DOCKER_USERNAME:
|
||||
from_secret: docker_username
|
||||
DOCKER_PASSWORD:
|
||||
from_secret: docker_password
|
||||
Reference in New Issue
Block a user