Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add woodpecker CI #2

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
99 changes: 0 additions & 99 deletions .drone.yml

This file was deleted.

13 changes: 13 additions & 0 deletions .woodpecker/.build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
steps:
submodules:
image: alpine/git
commands:
- git submodule update --init --recursive
dry-run:
image: woodpeckerci/plugin-docker-buildx
settings:
repo: ${CI_REPO_OWNER##mu-}/${CI_REPO_NAME}
platforms: linux/amd64
dry-run: true
when:
- event: pull_request
17 changes: 17 additions & 0 deletions .woodpecker/.feature.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
steps:
submodules:
image: alpine/git
commands:
- git submodule update --init --recursive
push-feature-build:
image: woodpeckerci/plugin-docker-buildx
settings:
repo: ${CI_REPO_OWNER##mu-}/${CI_REPO_NAME}
tags: ${CI_COMMIT_BRANCH/\//-}
platforms: linux/amd64
dockerfile: scripts/visualize-scripts/Dockerfile
secrets: [ docker_username, docker_password ]
when:
# all events except pull_request
- event: [push, pull_request_closed, tag, release, deployment, cron, manual]
branch: "*/*"
16 changes: 16 additions & 0 deletions .woodpecker/.latest.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
steps:
submodules:
image: alpine/git
commands:
- git submodule update --init --recursive
build-and-push:
image: woodpeckerci/plugin-docker-buildx
settings:
repo: ${CI_REPO_OWNER##mu-}/${CI_REPO_NAME}
tags: latest
platforms: linux/amd64
secrets: [ docker_username, docker_password ]
when:
# all events except pull_request
- event: [push, pull_request_closed, tag, release, deployment, cron, manual]
branch: master
14 changes: 14 additions & 0 deletions .woodpecker/.release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
steps:
submodules:
image: alpine/git
commands:
- git submodule update --init --recursive
build-and-push-tag:
image: woodpeckerci/plugin-docker-buildx
settings:
repo: ${CI_REPO_OWNER##mu-}/${CI_REPO_NAME}
tags: ${CI_COMMIT_TAG##v}
platforms: linux/amd64
secrets: [ docker_username, docker_password ]
when:
- event: tag