This repository has been archived on 2024-02-26. You can view files and clone it, but cannot push or open issues or pull requests.
reactive-resume-docker/Justfile

27 lines
1.6 KiB
Makefile

default: build-latest
LATEST_VERSION := `xh https://api.github.com/repos/AmruthPillai/Reactive-Resume/releases/latest Accept:application/vnd.github+json X-GitHub-Api-Version:2022-11-28 | jq .tag_name`
# build and push latest version of reactive-resume to "gitea" and "docker"
build-latest:
@echo "building images..."
docker build -t gitea.antoine-langlois.net/datahearth/reactive-resume:{{LATEST_VERSION}} --build-arg VERSION={{LATEST_VERSION}} .
docker tag gitea.antoine-langlois.net/datahearth/reactive-resume:{{LATEST_VERSION}} gitea.antoine-langlois.net/datahearth/reactive-resume:latest
docker tag gitea.antoine-langlois.net/datahearth/reactive-resume:{{LATEST_VERSION}} datahearth/reactive-resume:{{LATEST_VERSION}}
docker tag gitea.antoine-langlois.net/datahearth/reactive-resume:{{LATEST_VERSION}} datahearth/reactive-resume:latest
@echo "pushing images..."
docker push gitea.antoine-langlois.net/datahearth/reactive-resume:{{LATEST_VERSION}}
docker push gitea.antoine-langlois.net/datahearth/reactive-resume:latest
docker push datahearth/reactive-resume:{{LATEST_VERSION}}
docker push datahearth/reactive-resume:latest
# build and push specific version of reactive-resume to "gitea" and "docker"
build VERSION:
@echo "building images..."
docker build -t gitea.antoine-langlois.net/datahearth/reactive-resume:{{VERSION}} --build-arg VERSION={{VERSION}} .
docker tag gitea.antoine-langlois.net/datahearth/reactive-resume:{{VERSION}} datahearth/reactive-resume:{{VERSION}}
@echo "pushing images..."
docker push gitea.antoine-langlois.net/datahearth/reactive-resume:{{VERSION}}
docker push datahearth/reactive-resume:{{VERSION}}