ci: fix workflow - remove newline escape, simplify push conditional
Build and push runner images / build-runners (pull_request) Failing after 9s
Build and push runner images / build-runners (pull_request) Failing after 9s
This commit is contained in:
@@ -44,7 +44,7 @@ jobs:
|
||||
done
|
||||
|
||||
- name: Push images (main only)
|
||||
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
|
||||
if: github.event_name == 'push'
|
||||
run: |
|
||||
echo "${REGISTRY_TOKEN}" | docker login "${REGISTRY}" \
|
||||
--username "${REGISTRY_USER}" --password-stdin
|
||||
@@ -54,7 +54,7 @@ jobs:
|
||||
docker push "${IMAGE_BASE}/forgejo-runner-${RUNNER}:latest"
|
||||
echo "✅ Pushed ${RUNNER}-runner"
|
||||
done
|
||||
echo "\n✅ All runner images pushed to registry"
|
||||
echo "✅ All runner images pushed to registry"
|
||||
env:
|
||||
REGISTRY_USER: ${{ secrets.FORGEJO_REGISTRY_USER }}
|
||||
REGISTRY_TOKEN: ${{ secrets.FORGEJO_REGISTRY_TOKEN }}
|
||||
|
||||
Reference in New Issue
Block a user