Use immutable tags for running tasks

This way we can run tasks with `IfNotPresent` and be sure it works as intended.
This commit is contained in:
Mehran Kholdi
2020-05-29 19:20:03 +04:30
parent 0ab1e393fc
commit 46bd3565a0
9 changed files with 33 additions and 8 deletions

View File

@@ -1,3 +1,5 @@
ARG IMAGE_TAG
ARG IMAGE_REPOSITORY
FROM python:3
WORKDIR /app/
@@ -11,3 +13,9 @@ ADD ./ ./
ENTRYPOINT ["/usr/bin/env", "python3", "/app/rawfile.py"]
CMD ["csi-driver"]
ENV PYTHONUNBUFFERED 1
ARG IMAGE_TAG
ARG IMAGE_REPOSITORY
ENV IMAGE_REPOSITORY ${IMAGE_REPOSITORY}
ENV IMAGE_TAG ${IMAGE_TAG}