fix: guard steps with events and rm secret in PR workflow

This commit is contained in:
Aravinth Manivannan 2024-04-13 06:21:50 +05:30
parent 9f14325233
commit 032d67cd27
Signed by untrusted user: realaravinth
GPG key ID: F8F50389936984FF

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