feat(cmd): add sequence flag to execute multiple functions
Some checks failed
ci/woodpecker/push/lint Pipeline failed
ci/woodpecker/push/test unknown status
ci/woodpecker/push/build unknown status

This commit is contained in:
Tom Neuber 2024-12-07 00:52:25 +01:00
parent f9018dd392
commit c8f52b5af1
Signed by: tom
GPG key ID: F17EFE4272D89FF6
5 changed files with 36 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"]