build: Moved to just build public
This commit is contained in:
+1
-6
@@ -3,7 +3,7 @@ stages:
|
|||||||
- deploy
|
- deploy
|
||||||
|
|
||||||
variables:
|
variables:
|
||||||
IMAGE_NAME: "$HARBOR_REGISTRY/internal/echolog"
|
IMAGE_NAME: "$HARBOR_REGISTRY/public/echolog"
|
||||||
|
|
||||||
buildandpush:
|
buildandpush:
|
||||||
stage: buildandpush
|
stage: buildandpush
|
||||||
@@ -16,11 +16,6 @@ buildandpush:
|
|||||||
- docker tag $IMAGE_NAME:$IMAGE_TAG $IMAGE_NAME:latest
|
- docker tag $IMAGE_NAME:$IMAGE_TAG $IMAGE_NAME:latest
|
||||||
- docker push $IMAGE_NAME:$IMAGE_TAG
|
- docker push $IMAGE_NAME:$IMAGE_TAG
|
||||||
- docker push $IMAGE_NAME:latest
|
- docker push $IMAGE_NAME:latest
|
||||||
- docker tag $IMAGE_NAME:$IMAGE_TAG $HARBOR_REGISTRY/public/echolog:$IMAGE_TAG
|
|
||||||
- docker tag $IMAGE_NAME:$IMAGE_TAG $HARBOR_REGISTRY/public/echolog:latest
|
|
||||||
- docker push $HARBOR_REGISTRY/public/echolog:$IMAGE_TAG
|
|
||||||
- docker push $HARBOR_REGISTRY/public/echolog:latest
|
|
||||||
|
|
||||||
|
|
||||||
deploy:
|
deploy:
|
||||||
stage: deploy
|
stage: deploy
|
||||||
|
|||||||
+2
-3
@@ -8,8 +8,7 @@ RUN pip install -r requirements.txt \
|
|||||||
&& rm -rf /var/lib/apt/lists/* \
|
&& rm -rf /var/lib/apt/lists/* \
|
||||||
&& curl -sLO https://github.com/tailwindlabs/tailwindcss/releases/latest/download/tailwindcss-linux-x64 \
|
&& curl -sLO https://github.com/tailwindlabs/tailwindcss/releases/latest/download/tailwindcss-linux-x64 \
|
||||||
&& chmod +x tailwindcss-linux-x64 \
|
&& chmod +x tailwindcss-linux-x64 \
|
||||||
&& mv tailwindcss-linux-x64 tailwindcss \
|
&& ./tailwindcss-linux-x64 -i ./static/input.css -o ./static/output.css --content "./templates/*.html" --minify \
|
||||||
&& ./tailwindcss -i ./static/input.css -o ./static/output.css --content "./templates/*.html" --minify \
|
&& rm tailwindcss-linux-x64
|
||||||
&& rm tailwindcss
|
|
||||||
EXPOSE 5000
|
EXPOSE 5000
|
||||||
CMD ["gunicorn", "--workers", "2", "--bind", "0.0.0.0:5000", "app:app", "--log-level", "warning"]
|
CMD ["gunicorn", "--workers", "2", "--bind", "0.0.0.0:5000", "app:app", "--log-level", "warning"]
|
||||||
+1
-1
@@ -15,7 +15,7 @@ spec:
|
|||||||
spec:
|
spec:
|
||||||
containers:
|
containers:
|
||||||
- name: echolog
|
- name: echolog
|
||||||
image: docker.jdbnet.co.uk/internal/echolog:latest
|
image: docker.jdbnet.co.uk/public/echolog:latest
|
||||||
imagePullPolicy: Always
|
imagePullPolicy: Always
|
||||||
ports:
|
ports:
|
||||||
- containerPort: 5000
|
- containerPort: 5000
|
||||||
|
|||||||
Reference in New Issue
Block a user