Skip to content

Commit

Permalink
Log TARGETPLATFORM and BUILDPLATFORM
Browse files Browse the repository at this point in the history
  • Loading branch information
Minituff authored Oct 20, 2023
1 parent da0cc30 commit fb0fa65
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
6 changes: 4 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
# Use base docker image. Contains the docker commands we need to start and stop containers
FROM docker:24.0.6-cli

ARG TARGETPLATFORM
ARG BUILDPLATFORM
ARG TARGETPLATFORM=""
ARG BUILDPLATFORM=""
RUN echo "I am running on $BUILDPLATFORM, building for $TARGETPLATFORM"
ENV BUILDPLATFORM=${BUILDPLATFORM}
ENV TARGETPLATFORM=${TARGETPLATFORM}

# Install dependencies
RUN apk add bash rsync tzdata dos2unix jq
Expand Down
4 changes: 3 additions & 1 deletion pkg/entry.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@ source /app/logger.sh # Use the logger script

create_new_report_file

logThis "Nautical Backup Version: $NAUTICAL_VERSION" "INFO" "init"
logThis "Nautical Backup Version: $NAUTICAL_VERSION:$TARGETPLATFORM" "INFO" "init"
logThis "BUILDPLATFORM $BUILDPLATFORM"
logThis "TARGETPLATFORM $TARGETPLATFORM"
logThis "Using log level: $LOG_LEVEL" "DEBUG" "init"

# Echo the CRON schedule for logging/debugging
Expand Down

0 comments on commit fb0fa65

Please sign in to comment.