Adding woodpecker. Try 1

This commit is contained in:
Dessalines 2023-03-23 12:50:31 -04:00
parent 07e7e1eb87
commit c3a596c8d3

View file

@ -1,37 +1,29 @@
---
kind: pipeline
name: amd64
platform:
os: linux
arch: amd64
steps:
- name: fetch git submodules
+platform: linux/amd64
pipeline:
fetch_git_submodules:
image: node:14-alpine
commands:
- apk add git
- git submodule init
- git submodule update --recursive --remote
- git fetch --tags
# - git fetch --tags
- name: yarn
yarn:
image: node:14-alpine
commands:
- yarn
- name: yarn lint
yarn_lint:
image: node:14-alpine
commands:
- yarn lint
- name: yarn build:dev
yarn_build_dev:
image: node:14-alpine
commands:
- yarn build:dev
- name: nightly build
nightly_build:
image: plugins/docker
settings:
dockerfile: Dockerfile
@ -46,7 +38,7 @@ steps:
event:
- cron
- name: publish release docker image
publish_release_docker_image:
image: plugins/docker
settings:
dockerfile: Dockerfile
@ -58,27 +50,25 @@ steps:
password:
from_secret: docker_password
when:
ref:
- refs/tags/*
event: tag
- name: publish release docker manifest
publish_release_docker_manifest:
image: plugins/manifest
settings:
username:
from_secret: docker_username
password:
from_secret: docker_password
target: "dessalines/lemmy-ui:${DRONE_TAG}"
template: "dessalines/lemmy-ui:${DRONE_TAG}-OS-ARCH"
target: "dessalines/lemmy-ui:${CI_COMMIT_TAG}"
template: "dessalines/lemmy-ui:${CI_COMMIT_TAG}-OS-ARCH"
platforms:
- linux/amd64
- linux/arm64
ignore_missing: true
when:
ref:
- refs/tags/*
event: tag
- name: publish latest release docker manifest
publish_latest_release_docker_manifest:
image: plugins/manifest
settings:
username:
@ -86,26 +76,18 @@ steps:
password:
from_secret: docker_password
target: "dessalines/lemmy-ui:latest"
template: "dessalines/lemmy-ui:${DRONE_TAG}-OS-ARCH"
template: "dessalines/lemmy-ui:${CI_COMMIT_TAG}-OS-ARCH"
platforms:
- linux/amd64
- linux/arm64
ignore_missing: true
when:
ref:
- refs/tags/*
event: tag
---
kind: pipeline
name: arm64
+platform linux/arm64
pipeline:
platform:
os: linux
arch: arm64
steps:
- name: fetch git submodules
fetch_git_submodules:
image: node:14-alpine
commands:
- apk add git
@ -113,11 +95,9 @@ steps:
- git submodule update --recursive --remote
- git fetch --tags
when:
ref:
- refs/heads/main
- refs/tags/*
event: tag
- name: publish release docker image
publish_release_docker_image:
image: plugins/docker
settings:
dockerfile: Dockerfile
@ -129,27 +109,25 @@ steps:
password:
from_secret: docker_password
when:
ref:
- refs/tags/*
event: tag
- name: publish release docker manifest
publish_release_docker_manifest:
image: plugins/manifest
settings:
username:
from_secret: docker_username
password:
from_secret: docker_password
target: "dessalines/lemmy-ui:${DRONE_TAG}"
template: "dessalines/lemmy-ui:${DRONE_TAG}-OS-ARCH"
target: "dessalines/lemmy-ui:${CI_COMMIT_TAG}"
template: "dessalines/lemmy-ui:${CI_COMMIT_TAG}-OS-ARCH"
platforms:
- linux/amd64
- linux/arm64
ignore_missing: true
when:
ref:
- refs/tags/*
event: tag
- name: publish latest release docker manifest
publish_latest_release_docker_manifest:
image: plugins/manifest
settings:
username:
@ -157,11 +135,10 @@ steps:
password:
from_secret: docker_password
target: "dessalines/lemmy-ui:latest"
template: "dessalines/lemmy-ui:${DRONE_TAG}-OS-ARCH"
template: "dessalines/lemmy-ui:${CI_COMMIT_TAG}-OS-ARCH"
platforms:
- linux/amd64
- linux/arm64
ignore_missing: true
when:
ref:
- refs/tags/*
event: tag