File tree Expand file tree Collapse file tree 1 file changed +0
-24
lines changed Expand file tree Collapse file tree 1 file changed +0
-24
lines changed Original file line number Diff line number Diff line change 5252 build-and-push-testing-farm-sse-bridge :
5353 runs-on : ubuntu-latest
5454 steps :
55- - name : Ensure Repo Exists
56- run : |
57- curl -s -o response.txt -w "%{http_code}" -X POST https://quay.io/api/v1/repository \
58- -H "Content-Type: application/json" \
59- -u "${{ secrets.REGISTRY_LOGIN }}:${{ secrets.REGISTRY_TOKEN }}" \
60- -d "{
61- \"namespace\": \"jotnar\",
62- \"repository\": \"testing-farm-sse-bridge\",
63- \"description\": \"Testing Farm SSE Bridge container\",
64- \"visibility\": \"public\",
65- \"repo_kind\": \"image\"
66- }" | {
67- read status
68- if [[ "$status" == "200" || "$status" == "201" ]]; then
69- echo "✅ ✅ Repo created or already exists."
70- elif [[ "$status" == "409" ]]; then
71- echo "✅ Repo already exists."
72- else
73- echo "❌ Failed to create repo. Status: $status"
74- cat response.txt
75- exit 1
76- fi
77- }
78-
7955 - name : Build and push testing-farm-sse-bridge to quay.io registry
8056 uses : sclorg/build-and-push-action@v4
8157 with :
You can’t perform that action at this time.
0 commit comments