Skip to content

sredni/github-pull

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Build image

docker buildx build --platform linux/arm/v7 -t <user>/<repo>:<tag> --push .

Usage

Docker compose

...

  pull-repo:
    image: <user>/<repo>:<tag>
    restart: unless-stopped
    volumes: 
      - /path_to_repo:/repo
      - /path_to_config/prod.yaml:/app/config/prod.yaml
      - /path_to_ssh_key/id_rsa:/root/.ssh/id_rsa
    ports:
      - "8888:80"
    environment:
      - ENV=prod

...

in github webhook configuration set url to:

http://your_ip_or_domain:8888/pull

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published