feat(cmd): add sequence flag to execute multiple functions
All checks were successful
ci/woodpecker/push/lint Pipeline was successful
ci/woodpecker/push/test Pipeline was successful
ci/woodpecker/push/build Pipeline was successful

This commit is contained in:
Tom Neuber 2024-12-07 00:52:25 +01:00
parent 30ee41171a
commit 579f2a5df7
Signed by: tom
GPG key ID: F17EFE4272D89FF6
5 changed files with 37 additions and 4 deletions

View file

@ -20,6 +20,14 @@ FROM alpine
WORKDIR /app
# Copy built binary from build image
COPY --from=build /workspace/grafana-backuper /app
COPY --from=build /workspace/grafana-backuper .
ENTRYPOINT ["/app/grafana-backuper backup --json"]
RUN chmod +x grafana-backuper
# Copy the wrapper script
COPY entrypoint.sh .
# Ensure the script is executable
RUN chmod +x entrypoint.sh
ENTRYPOINT ["entrypoint.sh"]