Merge pull request 'fix: guard steps with events and rm secret in PR workflow' (#12) from fix-woodpecker-pr-config into master
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful

Reviewed-on: #12
This commit is contained in:
Aravinth Manivannan 2024-04-13 06:49:32 +05:30
commit defe361077

View file

@ -1,6 +1,8 @@
steps: steps:
backend: backend:
image: rust image: rust
when:
event: [push, pull_request, tag, deployment, cron, manual, release]
environment: environment:
- GIT_HASH=8e77345f1597e40c2e266cb4e6dee74888918a61 # dummy value - GIT_HASH=8e77345f1597e40c2e266cb4e6dee74888918a61 # dummy value
- COMPILED_DATE=2021-07-21 - COMPILED_DATE=2021-07-21
@ -16,13 +18,10 @@ steps:
image: woodpeckerci/plugin-docker-buildx image: woodpeckerci/plugin-docker-buildx
when: when:
event: [pull_request] event: [pull_request]
secrets: [docker_token]
settings: settings:
dry_run: true dry_run: true
repo: realaravinth/libmedium repo: realaravinth/libmedium
username: realaravinth username: realaravinth
password:
from_secret: DOCKER_TOKEN
platforms: linux/amd64,linux/arm64/v8 platforms: linux/amd64,linux/arm64/v8
tag: latest tag: latest