-
Notifications
You must be signed in to change notification settings - Fork 4
/
Makefile
51 lines (40 loc) · 1.96 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
DJANGO := ghcr.io/golemfactory/golem-stats-backend
IMG_DJANGO := golem-stats-backend:${GITHUB_SHA}
DJANGO_LATEST_LOCAL := golem-stats-backend:latest
LATEST_DJANGO := ${DJANGO}:${GITHUB_SHA}
CELERY := ghcr.io/golemfactory/golem-stats-backend-celery
IMG_CELERY := golem-stats-backend-celery:${GITHUB_SHA}
CELERY_LATEST_LOCAL := golem-stats-backend-celery:latest
LATEST_CELERY := ${CELERY}:${GITHUB_SHA}
CELERY_BEAT := ghcr.io/golemfactory/golem-stats-backend-celery-beat
IMG_CELERY_BEAT := golem-stats-backend-celery-beat:${GITHUB_SHA}
CELERY_BEAT_LATEST_LOCAL := golem-stats-backend-celery-beat:latest
LATEST_CELERY_BEAT := ${CELERY_BEAT}:${GITHUB_SHA}
YAGNA := ghcr.io/golemfactory/golem-stats-backend-celery-yagna
IMG_YAGNA := golem-stats-backend-celery-yagna:${GITHUB_SHA}
YAGNA_LATEST_LOCAL := golem-stats-backend-celery-yagna:latest
LATEST_YAGNA := ${YAGNA}:${GITHUB_SHA}
build-amd64:
@docker build -t ${IMG_DJANGO} -t ${DJANGO_LATEST_LOCAL} -f ./dockerfiles/Django .
@docker build -t ${IMG_CELERY} -t ${CELERY_LATEST_LOCAL} -f ./dockerfiles/Celery .
@docker build -t ${IMG_CELERY_BEAT} -t ${CELERY_BEAT_LATEST_LOCAL} -f ./dockerfiles/Beat .
@docker build -t ${IMG_YAGNA} -t ${YAGNA_LATEST_LOCAL} -f ./dockerfiles/Yagna .
@docker tag ${IMG_DJANGO} ${LATEST_DJANGO}
@docker tag ${IMG_CELERY} ${LATEST_CELERY}
@docker tag ${IMG_CELERY_BEAT} ${LATEST_CELERY_BEAT}
@docker tag ${IMG_YAGNA} ${LATEST_YAGNA}
@docker tag ${DJANGO_LATEST_LOCAL} ${DJANGO}:latest
@docker tag ${CELERY_LATEST_LOCAL} ${CELERY}:latest
@docker tag ${CELERY_BEAT_LATEST_LOCAL} ${CELERY_BEAT}:latest
@docker tag ${YAGNA_LATEST_LOCAL} ${YAGNA}:latest
push-amd64:
@docker push ${LATEST_DJANGO}
@docker push ${LATEST_CELERY}
@docker push ${LATEST_CELERY_BEAT}
@docker push ${LATEST_YAGNA}
@docker push ${DJANGO}:latest
@docker push ${CELERY}:latest
@docker push ${CELERY_BEAT}:latest
@docker push ${YAGNA}:latest
login:
@docker login ghcr.io -u ${DOCKER_USER} -p ${DOCKER_PASS}