The deployment chart for this project can be found in the charts repository.
# First get a github access token with registry read permissions.
NPM_TOKEN=access_token
# Get the sha of the latest commit you want to build from.
git log --oneline
# Then run the build. Uses multi-stage build, the access token wont be in the final image.
docker build -t ghcr.io/flashflashrevolution/service-patreon-linker:sha-shavalue --build-arg NPM_TOKEN=${NPM_TOKEN} .
# Push the built image.
docker push ghcr.io/flashflashrevolution/service-patreon-linker:sha-shavalue
# Here is an example of a functional sequence.
# NPM_TOKEN=averyvalidtokenstring
# docker build -t ghcr.io/flashflashrevolution/flashflashrevolution/service-patreon-linker:sha-cbcc9cd --build-arg NPM_TOKEN=${NPM_TOKEN} .
# docker push ghcr.io/flashflashrevolution/service-patreon-linker:sha-cbcc9cd
-
Create ormconfig.production and fill out database credentials. (Do not submit.)
-
npm run typeorm migration:generate -- --name initialize --connection patreon --config ormconfig.production
-
Commit the migration.
npm run typeorm migration:run -- --connection patreon --config ormconfig.production
# Fill out your github access token here. (The one for NPM.)
NPM_TOKEN=YOUR_ACCESS_TOKEN
docker build -t ghcr.io/flashflashrevolution/service-patreon-linker:dev --build-arg NPM_TOKEN=${NPM_TOKEN} .
docker container run --env-file .env 679d9a90b7f7 -p 8081:8081