diff --git a/.drone.yml b/.drone.yml deleted file mode 100644 index cdc26d0..0000000 --- a/.drone.yml +++ /dev/null @@ -1,83 +0,0 @@ ---- -kind: pipeline -type: docker -name: push-latest -steps: -- name: build-and-push - image: plugins/docker - settings: - repo: ${DRONE_REPO_NAMESPACE/mu-semtech/semtech}/mu-${DRONE_REPO_NAME} - username: - from_secret: docker_username - password: - from_secret: docker_password -trigger: - branch: - - master - event: - exclude: - - pull_request ---- -kind: pipeline -type: docker -name: push-feature-build -steps: -- name: push-feature-build - image: plugins/docker - settings: - repo: ${DRONE_REPO_NAMESPACE/mu-semtech/semtech}/mu-${DRONE_REPO_NAME} - tags: ${DRONE_BRANCH/\//-} - username: - from_secret: docker_username - password: - from_secret: docker_password - purge: true -trigger: - branch: - - "*/*" - event: - exclude: - - pull_request ---- -kind: pipeline -type: docker -name: push-release -steps: -- name: build-and-push-tag - image: plugins/docker - settings: - repo: ${DRONE_REPO_NAMESPACE/mu-semtech/semtech}/mu-${DRONE_REPO_NAME} - tags: ${DRONE_TAG##v} # strips v from the tag - username: - from_secret: docker_username - password: - from_secret: docker_password -trigger: - event: - - tag ---- -kind: pipeline -type: docker -name: dry-run -steps: -- name: dry-run - image: plugins/docker - settings: - repo: ${DRONE_REPO_NAMESPACE/mu-semtech/semtech}/mu-${DRONE_REPO_NAME} - dry_run: true -trigger: - event: - - pull_request ---- -kind: secret -name: docker_username -data: JC/sWINTny4ycNnQc8NFh8oObFbj6x3exzazY5aBmB2W7P8Nm+1C ---- -kind: secret -name: docker_password -data: 3yHEDnppaM71XZuW1iFUYMOb9b6zv0jDFPWoPZxB64cCZb8I9JavZ2k19WFehclekxk/bMT7DoUDwl7LwZRRJA== ---- -kind: signature -hmac: 20d6e08720a894e9d056bbf43f037015d9686c23a362bc0e6481c30a4577246b - -... diff --git a/.woodpecker/.build.yml b/.woodpecker/.build.yml new file mode 100644 index 0000000..b183dc0 --- /dev/null +++ b/.woodpecker/.build.yml @@ -0,0 +1,9 @@ +steps: + dry-run: + image: woodpeckerci/plugin-docker-buildx + settings: + repo: ${CI_REPO_OWNER##mu-}/mu-${CI_REPO_NAME} + platforms: linux/amd64 + dry-run: true +when: + - event: pull_request diff --git a/.woodpecker/.feature.yml b/.woodpecker/.feature.yml new file mode 100644 index 0000000..c7f7cae --- /dev/null +++ b/.woodpecker/.feature.yml @@ -0,0 +1,13 @@ +steps: + push-feature-build: + image: woodpeckerci/plugin-docker-buildx + settings: + repo: ${CI_REPO_OWNER##mu-}/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: "*/*" diff --git a/.woodpecker/.latest.yml b/.woodpecker/.latest.yml new file mode 100644 index 0000000..36e9381 --- /dev/null +++ b/.woodpecker/.latest.yml @@ -0,0 +1,12 @@ +steps: + build-and-push: + image: woodpeckerci/plugin-docker-buildx + settings: + repo: ${CI_REPO_OWNER##mu-}/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 diff --git a/.woodpecker/.release.yml b/.woodpecker/.release.yml new file mode 100644 index 0000000..18e3dac --- /dev/null +++ b/.woodpecker/.release.yml @@ -0,0 +1,10 @@ +steps: + build-and-push-tag: + image: woodpeckerci/plugin-docker-buildx + settings: + repo: ${CI_REPO_OWNER##mu-}/mu-${CI_REPO_NAME} + tags: ${CI_COMMIT_TAG##v} + platforms: linux/amd64 + secrets: [ docker_username, docker_password ] +when: + - event: tag