Skip to content

Latest commit

 

History

History
31 lines (31 loc) · 1.12 KB

README.md

File metadata and controls

31 lines (31 loc) · 1.12 KB

Marge-bot

Steps to build and push Docker Image to GitHub

Note: Use a minimum of 2 Cores and 1GB RAM on AWS or equivalent

  • Install git
    sudo apt update
    sudo apt install git
  • Setup Docker and nix
    git clone https://github.com/detecttechnologies/marge-bot.git
    cd marge-bot
    . install-docker-and-nix.sh
  • Log out and log in to complete the setup
  • Build docker image
    cd marge-bot
    make dockerize
  • Generate an access token from https://github.com/settings/tokens/new with write:packages context and paste it in TOKEN.txt
  • Authenticate to GitHub Docker Registry with your username
    cat TOKEN.txt | docker login https://docker.pkg.github.com -u <username> --password-stdin
  • Tag and push
    docker tag docker.pkg.github.com/detecttechnologies/marge-bot/docker-marge:<version> docker.pkg.github.com/detecttechnologies/marge-bot/docker-marge:latest
    docker push docker.pkg.github.com/detecttechnologies/marge-bot/docker-marge:<version>
    docker push docker.pkg.github.com/detecttechnologies/marge-bot/docker-marge:latest