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
|
done
|
||||||
|
|
||||||
- name: Push images (main only)
|
- name: Push images (main only)
|
||||||
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
|
if: github.event_name == 'push'
|
||||||
run: |
|
run: |
|
||||||
echo "${REGISTRY_TOKEN}" | docker login "${REGISTRY}" \
|
echo "${REGISTRY_TOKEN}" | docker login "${REGISTRY}" \
|
||||||
--username "${REGISTRY_USER}" --password-stdin
|
--username "${REGISTRY_USER}" --password-stdin
|
||||||
@@ -54,7 +54,7 @@ jobs:
|
|||||||
docker push "${IMAGE_BASE}/forgejo-runner-${RUNNER}:latest"
|
docker push "${IMAGE_BASE}/forgejo-runner-${RUNNER}:latest"
|
||||||
echo "✅ Pushed ${RUNNER}-runner"
|
echo "✅ Pushed ${RUNNER}-runner"
|
||||||
done
|
done
|
||||||
echo "\n✅ All runner images pushed to registry"
|
echo "✅ All runner images pushed to registry"
|
||||||
env:
|
env:
|
||||||
REGISTRY_USER: ${{ secrets.FORGEJO_REGISTRY_USER }}
|
REGISTRY_USER: ${{ secrets.FORGEJO_REGISTRY_USER }}
|
||||||
REGISTRY_TOKEN: ${{ secrets.FORGEJO_REGISTRY_TOKEN }}
|
REGISTRY_TOKEN: ${{ secrets.FORGEJO_REGISTRY_TOKEN }}
|
||||||
|
|||||||
Reference in New Issue
Block a user