|
3 | 3 |
|
4 | 4 | PACKAGE := $(shell grep '^PACKAGE =' setup.py | cut -d "'" -f2)
|
5 | 5 | VERSION := $(shell head -n 1 $(PACKAGE)/VERSION)
|
| 6 | +DOCKER_IMAGE := ghcr.io/whiletrue-industries/datapackage-pipelines |
6 | 7 |
|
7 | 8 |
|
8 | 9 | all: list
|
@@ -37,27 +38,27 @@ version:
|
37 | 38 |
|
38 | 39 | build:
|
39 | 40 | docker login -u "${DOCKER_USERNAME}" -p "${DOCKER_PASSWORD}"
|
40 |
| - docker pull frictionlessdata/datapackage-pipelines:latest &&\ |
41 |
| - docker build -t frictionlessdata/datapackage-pipelines:latest --cache-from frictionlessdata/datapackage-pipelines . &&\ |
42 |
| - docker build -t frictionlessdata/datapackage-pipelines:latest-alpine --cache-from frictionlessdata/datapackage-pipelines . &&\ |
43 |
| - docker build -t frictionlessdata/datapackage-pipelines:${VERSION} --cache-from frictionlessdata/datapackage-pipelines . &&\ |
44 |
| - docker build -t frictionlessdata/datapackage-pipelines:${VERSION}-alpine --cache-from frictionlessdata/datapackage-pipelines . &&\ |
45 |
| - docker pull frictionlessdata/datapackage-pipelines:latest-slim &&\ |
46 |
| - docker build -t frictionlessdata/datapackage-pipelines:latest-slim -f Dockerfile.slim --cache-from frictionlessdata/datapackage-pipelines:latest-slim . &&\ |
47 |
| - docker build -t frictionlessdata/datapackage-pipelines:${VERSION}-slim -f Dockerfile.slim --cache-from frictionlessdata/datapackage-pipelines:latest-slim . |
| 41 | + docker pull $(DOCKER_IMAGE):latest &&\ |
| 42 | + docker build -t $(DOCKER_IMAGE):latest --cache-from $(DOCKER_IMAGE) . &&\ |
| 43 | + docker build -t $(DOCKER_IMAGE):latest-alpine --cache-from $(DOCKER_IMAGE) . &&\ |
| 44 | + docker build -t $(DOCKER_IMAGE):${VERSION} --cache-from $(DOCKER_IMAGE) . &&\ |
| 45 | + docker build -t $(DOCKER_IMAGE):${VERSION}-alpine --cache-from $(DOCKER_IMAGE) . &&\ |
| 46 | + docker pull $(DOCKER_IMAGE):latest-slim &&\ |
| 47 | + docker build -t $(DOCKER_IMAGE):latest-slim -f Dockerfile.slim --cache-from $(DOCKER_IMAGE):latest-slim . &&\ |
| 48 | + docker build -t $(DOCKER_IMAGE):${VERSION}-slim -f Dockerfile.slim --cache-from $(DOCKER_IMAGE):latest-slim . |
48 | 49 |
|
49 | 50 |
|
50 | 51 | deploy-latest:
|
51 | 52 | docker login -u "${DOCKER_USERNAME}" -p "${DOCKER_PASSWORD}" &&\
|
52 |
| - docker push frictionlessdata/datapackage-pipelines:latest &&\ |
53 |
| - docker push frictionlessdata/datapackage-pipelines:latest-alpine &&\ |
54 |
| - docker push frictionlessdata/datapackage-pipelines:latest-slim |
| 53 | + docker push $(DOCKER_IMAGE):latest &&\ |
| 54 | + docker push $(DOCKER_IMAGE):latest-alpine &&\ |
| 55 | + docker push $(DOCKER_IMAGE):latest-slim |
55 | 56 |
|
56 | 57 | deploy-tags:
|
57 | 58 | docker login -u "${DOCKER_USERNAME}" -p "${DOCKER_PASSWORD}" &&\
|
58 |
| - docker push frictionlessdata/datapackage-pipelines:${VERSION} &&\ |
59 |
| - docker push frictionlessdata/datapackage-pipelines:${VERSION}-alpine &&\ |
60 |
| - docker push frictionlessdata/datapackage-pipelines:${VERSION}-slim |
| 59 | + docker push $(DOCKER_IMAGE):${VERSION} &&\ |
| 60 | + docker push $(DOCKER_IMAGE):${VERSION}-alpine &&\ |
| 61 | + docker push $(DOCKER_IMAGE):${VERSION}-slim |
61 | 62 |
|
62 | 63 | deploy-pip:
|
63 | 64 | rm -rf dist/ || true
|
|
0 commit comments