4 Commits

Author SHA1 Message Date
178eb3c308 update workflow
All checks were successful
Build and Publish / release (push) Has been skipped
Build and Publish / check-chart (push) Successful in 11s
Build and Publish / helm-release (push) Has been skipped
2025-07-20 12:09:56 -04:00
97c50966f1 improve rename 2025-07-20 12:03:59 -04:00
8fc97ec058 improve rename 2025-07-20 11:58:55 -04:00
0e5e6a380a HF: fix Dockerfile
All checks were successful
Build and Publish / check-chart (push) Successful in 26s
Build and Publish / helm-release (push) Has been skipped
Build and Publish / release (push) Successful in 3m7s
2025-07-20 11:44:25 -04:00
3 changed files with 14 additions and 3 deletions

View File

@ -119,6 +119,12 @@ jobs:
run: |
curl -fsSL https://raw.githubusercontent.com/helm/helm/main/scripts/get-helm-3 | bash
- name: Fetch Dependencies
run: |
cd helm && \
helm repo add hull https://vidispine.github.io/hull && \
helm dep build
- name: Package Chart
run: |
helm package --app-version ${VERSION} ${CHART_DIR}

View File

@ -22,6 +22,6 @@ ARG APP_NAME=go-server-with-otel
WORKDIR /app
USER 100:101
COPY --from=build --chown=100:101 /app/${APP_NAME} /app/
COPY --from=build --chown=100:101 /app/${APP_NAME} /app/app
ENTRYPOINT [ "/app/${APP_NAME}" ]
ENTRYPOINT [ "/app/app" ]

View File

@ -79,6 +79,9 @@ rename:
@sed -i "s|otelServiceName: .*|otelServiceName: $(APP)|g" helm/values.yaml
@sed -i "s|app=.*|app=$(APP)|g" helm/values.yaml
@sed -i "s|$(CMD_NAME)|$(APP)|g" README.md
@sed -i "s|$(CMD_NAME)|$(APP)|g" .gitea/workflows/ci.yml
@sed -i "s|$(GIT_REPO)|$(NAME)|g" .gitea/workflows/ci.yml
@rm contrib/$(CMD_NAME).swagger.json
@find . -type f -a \
\( -name '*.go' -o -name 'go.mod' \
-o -name 'go.sum' -o -name '*.proto' \
@ -87,4 +90,6 @@ rename:
\) \
-not -path './.git' -not -path './.git/*' \
-exec sed -i "s|$(GIT_REPO)|$(NAME)|g" {} +
@echo "Project renamed to $(NAME)"
@echo "\n* Project renamed to $(NAME)"
@echo "* NOTE: You will have to update .gitea/workflows/ci.yml"
@echo "* NOTE: You will have to run buf generate"