This commit is contained in:
1
check.sh
1
check.sh
@@ -81,6 +81,7 @@ if [ -n "${DOCKER_USERNAME}" ] && [ -n "${DOCKER_PASSWORD}" ]; then
|
||||
HEADER="Authorization: JWT ${TOKEN}"
|
||||
fi
|
||||
|
||||
# curl -X 'GET' -H 'accept: application/json' 'https://git.narvas.tech/api/v1/packages/[USER]/container/[REPO]/dev?access_token=[TOKEN]'
|
||||
|
||||
# compare the update time of the BASE and TARGET images
|
||||
BASE_DATE=$(curl -s -H "${HEADER}" "${BASE_URL}" | jq -r .last_updated | sed 's/T/ /' | sed 's/\..*//' )
|
||||
|
||||
Reference in New Issue
Block a user