2023-03-23 16:50:31 +00:00
|
|
|
pipeline:
|
|
|
|
fetch_git_submodules:
|
2020-12-23 15:26:52 +00:00
|
|
|
image: node:14-alpine
|
|
|
|
commands:
|
|
|
|
- apk add git
|
|
|
|
- git submodule init
|
|
|
|
- git submodule update --recursive --remote
|
2023-03-23 16:50:31 +00:00
|
|
|
# - git fetch --tags
|
2020-12-23 15:26:52 +00:00
|
|
|
|
2023-03-23 16:50:31 +00:00
|
|
|
yarn:
|
2020-12-23 15:26:52 +00:00
|
|
|
image: node:14-alpine
|
|
|
|
commands:
|
|
|
|
- yarn
|
2023-03-23 17:29:58 +00:00
|
|
|
when:
|
2023-03-23 17:36:33 +00:00
|
|
|
platform: [linux/*]
|
2020-12-23 15:26:52 +00:00
|
|
|
|
2023-03-23 16:50:31 +00:00
|
|
|
yarn_lint:
|
2020-12-23 15:26:52 +00:00
|
|
|
image: node:14-alpine
|
|
|
|
commands:
|
|
|
|
- yarn lint
|
|
|
|
|
2023-03-23 16:50:31 +00:00
|
|
|
yarn_build_dev:
|
2020-12-23 15:26:52 +00:00
|
|
|
image: node:14-alpine
|
|
|
|
commands:
|
|
|
|
- yarn build:dev
|
|
|
|
|
2023-03-23 16:50:31 +00:00
|
|
|
nightly_build:
|
2022-05-25 21:00:07 +00:00
|
|
|
image: plugins/docker
|
|
|
|
settings:
|
|
|
|
dockerfile: Dockerfile
|
|
|
|
repo: dessalines/lemmy-ui
|
|
|
|
username:
|
|
|
|
from_secret: docker_username
|
|
|
|
password:
|
|
|
|
from_secret: docker_password
|
|
|
|
tags:
|
|
|
|
- dev
|
|
|
|
when:
|
|
|
|
event:
|
|
|
|
- cron
|
|
|
|
|
2023-03-23 16:57:21 +00:00
|
|
|
publish_release_docker_image_amd:
|
2020-12-23 15:26:52 +00:00
|
|
|
image: plugins/docker
|
|
|
|
settings:
|
|
|
|
dockerfile: Dockerfile
|
|
|
|
repo: dessalines/lemmy-ui
|
2021-01-13 14:39:10 +00:00
|
|
|
auto_tag: true
|
2021-01-23 15:59:57 +00:00
|
|
|
auto_tag_suffix: linux-amd64
|
2021-01-13 14:39:10 +00:00
|
|
|
username:
|
|
|
|
from_secret: docker_username
|
|
|
|
password:
|
|
|
|
from_secret: docker_password
|
2020-12-23 15:26:52 +00:00
|
|
|
when:
|
2023-03-23 16:50:31 +00:00
|
|
|
event: tag
|
2023-03-23 16:57:21 +00:00
|
|
|
platform: linux/amd64
|
2020-12-23 15:26:52 +00:00
|
|
|
|
2023-03-23 16:57:21 +00:00
|
|
|
publish_release_docker_image_arm:
|
2021-01-15 17:41:38 +00:00
|
|
|
image: plugins/docker
|
|
|
|
settings:
|
|
|
|
dockerfile: Dockerfile
|
|
|
|
repo: dessalines/lemmy-ui
|
|
|
|
auto_tag: true
|
2021-01-23 15:59:57 +00:00
|
|
|
auto_tag_suffix: linux-arm64
|
2021-01-15 17:41:38 +00:00
|
|
|
username:
|
|
|
|
from_secret: docker_username
|
|
|
|
password:
|
|
|
|
from_secret: docker_password
|
|
|
|
when:
|
2023-03-23 16:50:31 +00:00
|
|
|
event: tag
|
2023-03-23 16:57:21 +00:00
|
|
|
platform: linux/amd64
|
2021-01-04 16:15:12 +00:00
|
|
|
|
2023-03-23 16:50:31 +00:00
|
|
|
publish_release_docker_manifest:
|
2021-01-23 15:59:57 +00:00
|
|
|
image: plugins/manifest
|
|
|
|
settings:
|
|
|
|
username:
|
|
|
|
from_secret: docker_username
|
|
|
|
password:
|
|
|
|
from_secret: docker_password
|
2023-03-23 16:50:31 +00:00
|
|
|
target: "dessalines/lemmy-ui:${CI_COMMIT_TAG}"
|
|
|
|
template: "dessalines/lemmy-ui:${CI_COMMIT_TAG}-OS-ARCH"
|
2021-01-23 15:59:57 +00:00
|
|
|
platforms:
|
|
|
|
- linux/amd64
|
|
|
|
- linux/arm64
|
|
|
|
ignore_missing: true
|
|
|
|
when:
|
2023-03-23 16:50:31 +00:00
|
|
|
event: tag
|
2021-11-25 17:15:22 +00:00
|
|
|
|
2023-03-23 16:50:31 +00:00
|
|
|
publish_latest_release_docker_manifest:
|
2021-11-25 17:15:22 +00:00
|
|
|
image: plugins/manifest
|
|
|
|
settings:
|
|
|
|
username:
|
|
|
|
from_secret: docker_username
|
|
|
|
password:
|
|
|
|
from_secret: docker_password
|
|
|
|
target: "dessalines/lemmy-ui:latest"
|
2023-03-23 16:50:31 +00:00
|
|
|
template: "dessalines/lemmy-ui:${CI_COMMIT_TAG}-OS-ARCH"
|
2021-11-25 17:15:22 +00:00
|
|
|
platforms:
|
|
|
|
- linux/amd64
|
|
|
|
- linux/arm64
|
|
|
|
ignore_missing: true
|
|
|
|
when:
|
2023-03-23 16:50:31 +00:00
|
|
|
event: tag
|