fix: Add Docker images to runner labels and fix frontend-lint condition

This commit is contained in:
Damir Mukimov 2025-12-24 21:29:08 +01:00
parent 26098e4d04
commit 3bfdf37436
No known key found for this signature in database
GPG Key ID: 42996CC7C73BC750
2 changed files with 2 additions and 2 deletions

View File

@ -18,7 +18,7 @@ on:
jobs:
frontend-lint:
runs-on: ubuntu-latest
if: github.event_name == 'pull_request' || contains(github.event.head_commit.modified, 'bugulma/frontend') || contains(github.event.head_commit.added, 'bugulma/frontend')
if: gitea.event_name == 'pull_request' || contains(gitea.event.head_commit.modified, 'bugulma/frontend') || contains(gitea.event.head_commit.added, 'bugulma/frontend') || (gitea.event_name == 'push' && gitea.ref == 'refs/heads/master')
steps:
- uses: actions/checkout@v4
- name: Setup Node.js

View File

@ -41,7 +41,7 @@ spec:
fieldRef:
fieldPath: metadata.name
- name: GITEA_RUNNER_LABELS
value: "ubuntu-latest,ubuntu-22.04,ubuntu-20.04"
value: "ubuntu-latest:docker://node:18-bullseye,ubuntu-22.04:docker://node:18-bullseye,ubuntu-20.04:docker://node:18-bullseye"
- name: DOCKER_HOST
value: "tcp://localhost:2375"
volumeMounts: