sync: update watch-repos.yaml from wavecat repo
This commit is contained in:
parent
226cc6bea2
commit
6606d6dbee
1 changed files with 2 additions and 2 deletions
|
|
@ -47,7 +47,7 @@ jobs:
|
||||||
|
|
||||||
- name: Check for new commits
|
- name: Check for new commits
|
||||||
run: |
|
run: |
|
||||||
LAST_SHA=$(curl -s "http://forgejo.tooling.svc.cluster.local:3000/api/v1/repos/ember/fluffychat/branches/main" | grep -o '"sha":"[^"]*"' | head -1 | cut -d'"' -f4)
|
LAST_SHA=$(curl -s "http://forgejo.tooling.svc.cluster.local:3000/api/v1/repos/ember/fluffychat/branches/deployment" | grep -o '"sha":"[^"]*"' | head -1 | cut -d'"' -f4)
|
||||||
BUILT_SHA=$(curl -s "http://10.70.69.22:30500/v2/ember/fluffychat/tags/list" | grep -o "$LAST_SHA" || true)
|
BUILT_SHA=$(curl -s "http://10.70.69.22:30500/v2/ember/fluffychat/tags/list" | grep -o "$LAST_SHA" || true)
|
||||||
if [ -z "$BUILT_SHA" ] && [ -n "$LAST_SHA" ]; then
|
if [ -z "$BUILT_SHA" ] && [ -n "$LAST_SHA" ]; then
|
||||||
echo "New commit detected: $LAST_SHA"
|
echo "New commit detected: $LAST_SHA"
|
||||||
|
|
@ -60,7 +60,7 @@ jobs:
|
||||||
- name: Trigger build
|
- name: Trigger build
|
||||||
if: env.BUILD == 'true'
|
if: env.BUILD == 'true'
|
||||||
run: |
|
run: |
|
||||||
git clone --depth 1 --branch main \
|
git clone --depth 1 --branch deployment \
|
||||||
http://forgejo.tooling.svc.cluster.local:3000/ember/fluffychat.git .
|
http://forgejo.tooling.svc.cluster.local:3000/ember/fluffychat.git .
|
||||||
docker build -t 10.70.69.22:30500/ember/fluffychat:latest \
|
docker build -t 10.70.69.22:30500/ember/fluffychat:latest \
|
||||||
-t 10.70.69.22:30500/ember/fluffychat:${SHA} .
|
-t 10.70.69.22:30500/ember/fluffychat:${SHA} .
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue