test
This commit is contained in:
@@ -1,12 +0,0 @@
|
||||
when:
|
||||
branch: main
|
||||
event: push
|
||||
steps:
|
||||
deploy-prod:
|
||||
image: node
|
||||
secrets: [vercel_org_id, vercel_project_id, vercel_token]
|
||||
commands:
|
||||
- npm install --global vercel@latest
|
||||
- vercel pull --yes --environment=production --token=$VERCEL_TOKEN
|
||||
- vercel build --prod --token=$VERCEL_TOKEN
|
||||
- vercel deploy --prebuilt --prod --token=$VERCEL_TOKEN
|
||||
34
.woodpecker/pipeline.yml
Normal file
34
.woodpecker/pipeline.yml
Normal file
@@ -0,0 +1,34 @@
|
||||
when:
|
||||
branch: main
|
||||
|
||||
variables:
|
||||
- &file Dockerfile
|
||||
- &repo gitea.michaelthomson.dev/${CI_REPO_OWNER}/michaelthomson
|
||||
|
||||
steps:
|
||||
dryrun:
|
||||
image: woodpeckerci/plugin-docker-buildx
|
||||
settings:
|
||||
dockerfile: *file
|
||||
platforms: linux/arm/v7,linux/arm64/v8,linux/amd64,linux/ppc64le
|
||||
dry_run: true
|
||||
repo: *repo
|
||||
tags: latest
|
||||
when:
|
||||
event: pull_request
|
||||
path: *file
|
||||
|
||||
publish:
|
||||
image: woodpeckerci/plugin-docker-buildx
|
||||
secrets: [pa_token]
|
||||
settings:
|
||||
dockerfile: *file
|
||||
platforms: linux/arm/v7,linux/arm64/v8,linux/amd64,linux/ppc64le
|
||||
repo: *repo
|
||||
registry: gitea.michaelthomson.dev
|
||||
tags: latest
|
||||
username: ${CI_REPO_OWNER}
|
||||
password: ${PA_TOKEN}
|
||||
when:
|
||||
event: push
|
||||
path: *file
|
||||
Reference in New Issue
Block a user