refactor: Moved to build to public
This commit is contained in:
+1
-5
@@ -3,7 +3,7 @@ stages:
|
|||||||
- deploy
|
- deploy
|
||||||
|
|
||||||
variables:
|
variables:
|
||||||
IMAGE_NAME: "$HARBOR_REGISTRY/internal/ipam"
|
IMAGE_NAME: "$HARBOR_REGISTRY/public/ipam"
|
||||||
|
|
||||||
buildandpush:
|
buildandpush:
|
||||||
stage: buildandpush
|
stage: buildandpush
|
||||||
@@ -16,10 +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/ipam:$IMAGE_TAG
|
|
||||||
- docker tag $IMAGE_NAME:$IMAGE_TAG $HARBOR_REGISTRY/public/ipam:latest
|
|
||||||
- docker push $HARBOR_REGISTRY/public/ipam:$IMAGE_TAG
|
|
||||||
- docker push $HARBOR_REGISTRY/public/ipam:latest
|
|
||||||
|
|
||||||
deploy:
|
deploy:
|
||||||
stage: deploy
|
stage: deploy
|
||||||
|
|||||||
+2
-2
@@ -6,7 +6,7 @@ RUN apt-get update && apt-get install -y curl
|
|||||||
RUN rm -rf /var/lib/apt/lists/*
|
RUN rm -rf /var/lib/apt/lists/*
|
||||||
RUN curl -sLO https://github.com/tailwindlabs/tailwindcss/releases/latest/download/tailwindcss-linux-x64 \
|
RUN 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/css/input.css -o ./static/css/output.css --content "./templates/*.html,./static/js/*.js" --minify \
|
||||||
&& ./tailwindcss -i ./static/css/input.css -o ./static/css/output.css --content "./templates/*.html,./static/js/*.js" --minify
|
&& rm tailwindcss-linux-x64
|
||||||
EXPOSE 5000
|
EXPOSE 5000
|
||||||
CMD ["gunicorn", "--bind", "0.0.0.0:5000", "app:app", "--workers", "3", "--log-level", "warning"]
|
CMD ["gunicorn", "--bind", "0.0.0.0:5000", "app:app", "--workers", "3", "--log-level", "warning"]
|
||||||
Reference in New Issue
Block a user