fix: upload step needs gogs_default network to reach Gogs API (host firewall blocks default bridge)
This commit is contained in:
parent
0e47ccd2b9
commit
a004d8b3ef
@ -32,6 +32,7 @@ pipeline:
|
|||||||
|
|
||||||
upload-release-linux:
|
upload-release-linux:
|
||||||
image: curlimages/curl:latest
|
image: curlimages/curl:latest
|
||||||
|
network_mode: gogs_default
|
||||||
when:
|
when:
|
||||||
event: tag
|
event: tag
|
||||||
secrets: [GOGS_TOKEN]
|
secrets: [GOGS_TOKEN]
|
||||||
@ -39,7 +40,7 @@ pipeline:
|
|||||||
- |
|
- |
|
||||||
TAG=${CI_COMMIT_TAG}
|
TAG=${CI_COMMIT_TAG}
|
||||||
REPO=${CI_REPO}
|
REPO=${CI_REPO}
|
||||||
API="http://172.0.0.29:3000/api/v1"
|
API="http://gogs_app:3000/api/v1"
|
||||||
|
|
||||||
# Create release
|
# Create release
|
||||||
curl -sf -X POST "$API/repos/$REPO/releases" \
|
curl -sf -X POST "$API/repos/$REPO/releases" \
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user