Testing out automation
Build and Push Docker Image / docker (push) Failing after 9s

This commit is contained in:
2026-09-17 12:43:46 -06:00
parent 53020ee522
commit 9939f495f9
2 changed files with 19 additions and 6 deletions
+9 -5
View File
@@ -1,14 +1,18 @@
#!/bin/bash
DOCKER_PASSWORD="${1}"
GITEA_API_KEY="${2}"
GITEA_OWNER_REPO="${1}"
DOCKERHUB_PASSWORD="${2}"
GITEA_API_KEY="${3}"
docker_username=pizza2da1
gitea_username=pizza2d1
repo_name=better_ripper
gitea_username=$(echo "${GITEA_OWNER_REPO}" | sed 's/\/.*//')
repo_name=$(echo "${GITEA_OWNER_REPO}" | sed 's/^.*\///')
#gitea_username=pizza2d1
#repo_name=better_ripper
TOKEN=$(curl -s -X POST "https://hub.docker.com/v2/auth/token" \
-H "Content-Type: application/json" \
-d "{\"identifier\": \"${docker_username}\", \"secret\": \"${DOCKER_PASSWORD}\"}" \
-d "{\"identifier\": \"${docker_username}\", \"secret\": \"${DOCKERHUB_PASSWORD}\"}" \
| jq -r .access_token)
echo $TOKEN