All checks were successful
Build and Push Docker Image / build-and-push (push) Successful in 1m14s
14 lines
No EOL
350 B
Bash
14 lines
No EOL
350 B
Bash
#!/bin/sh
|
|
set -e
|
|
|
|
# Check if the buildstamp file exists
|
|
if [ -f /buildstamp.txt ]; then
|
|
# Read the build timestamp from the file
|
|
BUILD_TIMESTAMP=$(cat /buildstamp.txt)
|
|
# Echo the message
|
|
echo "This container is running an image that was built on: $BUILD_TIMESTAMP"
|
|
else
|
|
echo "Build timestamp file (/buildstamp.txt) not found!"
|
|
fi
|
|
|
|
exec "$@" |