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 52
52
build-and-push-testing-farm-sse-bridge :
53
53
runs-on : ubuntu-latest
54
54
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
-
79
55
- name : Build and push testing-farm-sse-bridge to quay.io registry
80
56
uses : sclorg/build-and-push-action@v4
81
57
with :
You can’t perform that action at this time.
0 commit comments