88
99
1010
11- < link rel ="canonical " href ="https://explodinglabs.com/iko/deploy / ">
11+ < link rel ="canonical " href ="https://explodinglabs.com/iko/deploying / ">
1212
1313
1414 < link rel ="prev " href ="../scripting/ ">
@@ -602,10 +602,10 @@ <h3 id="1-create-a-dockerfile">1. Create a Dockerfile</h3>
602602< p > This copies your migrations into the image at /repo, where Iko expects them.</ p >
603603< h3 id ="2-build-the-image "> 2. Build the image</ h3 >
604604< p > Give it a meaningful tag, e.g. for production:</ p >
605- < div class ="highlight "> < pre > < span > </ span > < code > docker< span class ="w "> </ span > build< span class ="w "> </ span > -t< span class ="w "> </ span > ghcr.io/your-org/iko-with-migrations< span class ="w "> </ span > .
605+ < div class ="highlight "> < pre > < span > </ span > < code > docker< span class ="w "> </ span > build< span class ="w "> </ span > -t< span class ="w "> </ span > ghcr.io/your-org/iko-with-migrations:latest < span class ="w "> </ span > .
606606</ code > </ pre > </ div >
607607< p > Then push it to your container registry:</ p >
608- < div class ="highlight "> < pre > < span > </ span > < code > docker< span class ="w "> </ span > push< span class ="w "> </ span > ghcr.io/your-org/iko-with-migrations
608+ < div class ="highlight "> < pre > < span > </ span > < code > docker< span class ="w "> </ span > push< span class ="w "> </ span > ghcr.io/your-org/iko-with-migrations:latest
609609</ code > </ pre > </ div >
610610< h3 id ="3-run-the-deploy-on-the-remote-environment "> 3. Run the deploy on the remote environment</ h3 >
611611< p > On the target server or inside your CI/CD pipeline, run:</ p >
@@ -614,7 +614,7 @@ <h3 id="3-run-the-deploy-on-the-remote-environment">3. Run the deploy on the rem
614614< span class ="w "> </ span > -e< span class ="w "> </ span > < span class ="nv "> PG_PASS</ span > < span class ="o "> =</ span > yourpass< span class ="w "> </ span > < span class ="se "> \</ span >
615615< span class ="w "> </ span > -e< span class ="w "> </ span > < span class ="nv "> PG_HOST</ span > < span class ="o "> =</ span > postgres< span class ="w "> </ span > < span class ="se "> \</ span >
616616< span class ="w "> </ span > -e< span class ="w "> </ span > < span class ="nv "> PG_DB</ span > < span class ="o "> =</ span > app< span class ="w "> </ span > < span class ="se "> \</ span >
617- < span class ="w "> </ span > ghcr.io/your-org/iko-with-migrations< span class ="w "> </ span > deploy< span class ="w "> </ span > --verify
617+ < span class ="w "> </ span > ghcr.io/your-org/iko-with-migrations:latest < span class ="w "> </ span > deploy< span class ="w "> </ span > --verify
618618</ code > </ pre > </ div >
619619
620620
0 commit comments