Unknownpgr

Build script

2023-09-02 15:00:53 | English, Korean

This post was translated from Korean into English by AI.

I created a Docker build script that is useful for building small projects.

Usage

Create a build script like the one below.

#!/bin/bash
shopt -s expand_aliases
alias build='curl -sSL l.ist.sh/b | node - build'

# Build images
export BACKEND_IMAGE=`build backend se.ction.link/blog-backend`
export FRONTEND_IMAGE=`build frontend se.ction.link/blog-frontend`

# Deploy with envsubst
cat kubernetes/resources.yaml | envsubst | kubectl apply -f -

How it works


- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -