Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

README.md

Using the docker image

Running backport via docker

Create a bash alias

alias backport='docker run -it --rm -v $(pwd):/app:ro -v ~/.backport:/root/.backport sorenlouv/backport'

You can now run backport via Docker like:

backport --help

Development

Running from source

docker run -it --rm -v $(pwd):/app:ro -v ~/.backport:/root/.backport $(docker build --tag backport-dev -q .)

Build docker image

docker build -t sorenlouv/backport .

Test image locally before publishing:

docker run --rm -v $(pwd):/app:ro -v ~/.backport:/root/.backport sorenlouv/backport -v

Publish to Docker hub

A. Via Github action

Go to the Docker push action and deploy by clicking "Run workflow".

B. Locally

docker push sorenlouv/backport

Note: this will not produce multi-platform images

Authenticate with docker hub

Create a personal access token can be created on Docker Hub, then run docker login to authenticate.