split pr and push actions into separate woodpecker configs
All checks were successful
ci/woodpecker/pr/pr Pipeline was successful
All checks were successful
ci/woodpecker/pr/pr Pipeline was successful
This commit is contained in:
@@ -1,3 +1,6 @@
|
|||||||
|
when:
|
||||||
|
- event: pull_request
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: lint
|
- name: lint
|
||||||
image: node:24-slim
|
image: node:24-slim
|
||||||
@@ -5,8 +8,6 @@ steps:
|
|||||||
commands:
|
commands:
|
||||||
- npm ci
|
- npm ci
|
||||||
- npm run lint
|
- npm run lint
|
||||||
when:
|
|
||||||
- event: pull_request
|
|
||||||
|
|
||||||
- name: test
|
- name: test
|
||||||
image: node:24-slim
|
image: node:24-slim
|
||||||
@@ -14,8 +15,6 @@ steps:
|
|||||||
commands:
|
commands:
|
||||||
- npm ci
|
- npm ci
|
||||||
- npm run test
|
- npm run test
|
||||||
when:
|
|
||||||
- event: pull_request
|
|
||||||
|
|
||||||
- name: e2e
|
- name: e2e
|
||||||
image: mcr.microsoft.com/playwright:v1.58.2-noble
|
image: mcr.microsoft.com/playwright:v1.58.2-noble
|
||||||
@@ -26,8 +25,6 @@ steps:
|
|||||||
- npm run test:e2e
|
- npm run test:e2e
|
||||||
environment:
|
environment:
|
||||||
NODE_TLS_REJECT_UNAUTHORIZED: "0"
|
NODE_TLS_REJECT_UNAUTHORIZED: "0"
|
||||||
when:
|
|
||||||
- event: pull_request
|
|
||||||
|
|
||||||
- name: docker-build
|
- name: docker-build
|
||||||
image: woodpeckerci/plugin-kaniko
|
image: woodpeckerci/plugin-kaniko
|
||||||
@@ -39,20 +36,3 @@ steps:
|
|||||||
dry-run: true
|
dry-run: true
|
||||||
single-snapshot: true
|
single-snapshot: true
|
||||||
cleanup: true
|
cleanup: true
|
||||||
when:
|
|
||||||
- event: pull_request
|
|
||||||
|
|
||||||
- name: docker-build-push
|
|
||||||
image: woodpeckerci/plugin-kaniko
|
|
||||||
settings:
|
|
||||||
repo: ${CI_REPO_OWNER}/${CI_REPO_NAME}
|
|
||||||
registry: git.keligrubb.com
|
|
||||||
tags: latest,${CI_COMMIT_SHA:0:7}
|
|
||||||
username: ${CI_REPO_OWNER}
|
|
||||||
password:
|
|
||||||
from_secret: gitea_registry_token
|
|
||||||
single-snapshot: true
|
|
||||||
cleanup: true
|
|
||||||
when:
|
|
||||||
- event: push
|
|
||||||
branch: main
|
|
||||||
16
.woodpecker/push.yml
Normal file
16
.woodpecker/push.yml
Normal file
@@ -0,0 +1,16 @@
|
|||||||
|
when:
|
||||||
|
- event: push
|
||||||
|
branch: main
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: docker-build-push
|
||||||
|
image: woodpeckerci/plugin-kaniko
|
||||||
|
settings:
|
||||||
|
repo: ${CI_REPO_OWNER}/${CI_REPO_NAME}
|
||||||
|
registry: git.keligrubb.com
|
||||||
|
tags: latest,${CI_COMMIT_SHA:0:7}
|
||||||
|
username: ${CI_REPO_OWNER}
|
||||||
|
password:
|
||||||
|
from_secret: gitea_registry_token
|
||||||
|
single-snapshot: true
|
||||||
|
cleanup: true
|
||||||
Reference in New Issue
Block a user