Skip to content

Instantly share code, notes, and snippets.

View beliaev-maksim's full-sized avatar
👻

Maksim Beliaev beliaev-maksim

👻
View GitHub Profile
@beliaev-maksim
beliaev-maksim / publish.sh
Last active May 15, 2023 10:05
Publish image on ghcr
# Login using environment variables for GitHub username and API tocken
docker login ghcr.io --username $GH_USER --password=$GH_TOKEN
# Build image, execute from the directory with `Dockerfile`
docker build -t api_demo_server .
# tag an image with ghcr tag and version
docker tag api_demo_server ghcr.io/beliaev-maksim/api_demo_server:1.0.0
# now push your image to web host