mirror of
https://github.com/LemmyNet/lemmy.git
synced 2025-01-08 11:11:37 +00:00
use ref
for condition, as branch
uses the target branch for PRs
This commit is contained in:
parent
1bab7f4a34
commit
c77943ff49
1 changed files with 16 additions and 16 deletions
32
.drone.yml
32
.drone.yml
|
@ -55,7 +55,7 @@ steps:
|
||||||
- yarn
|
- yarn
|
||||||
- yarn api-test
|
- yarn api-test
|
||||||
|
|
||||||
- name: build latest development version and push to docker hub
|
- name: publish dev docker image
|
||||||
image: plugins/docker
|
image: plugins/docker
|
||||||
settings:
|
settings:
|
||||||
dockerfile: docker/prod/Dockerfile
|
dockerfile: docker/prod/Dockerfile
|
||||||
|
@ -67,10 +67,10 @@ steps:
|
||||||
tags:
|
tags:
|
||||||
- dev-linux-amd64
|
- dev-linux-amd64
|
||||||
when:
|
when:
|
||||||
branch:
|
ref:
|
||||||
- main
|
- refs/heads/main
|
||||||
|
|
||||||
- name: push dev build to docker manifest
|
- name: publish dev docker manifest
|
||||||
image: plugins/manifest
|
image: plugins/manifest
|
||||||
settings:
|
settings:
|
||||||
username:
|
username:
|
||||||
|
@ -84,10 +84,10 @@ steps:
|
||||||
- linux/arm64
|
- linux/arm64
|
||||||
ignore_missing: true
|
ignore_missing: true
|
||||||
when:
|
when:
|
||||||
branch:
|
ref:
|
||||||
- main
|
- refs/heads/main
|
||||||
|
|
||||||
- name: make release build and push to docker hub
|
- name: publish release docker image
|
||||||
image: plugins/docker
|
image: plugins/docker
|
||||||
settings:
|
settings:
|
||||||
dockerfile: docker/prod/Dockerfile
|
dockerfile: docker/prod/Dockerfile
|
||||||
|
@ -102,7 +102,7 @@ steps:
|
||||||
ref:
|
ref:
|
||||||
- refs/tags/*
|
- refs/tags/*
|
||||||
|
|
||||||
- name: push to docker manifest
|
- name: publish release docker manifest
|
||||||
image: plugins/manifest
|
image: plugins/manifest
|
||||||
settings:
|
settings:
|
||||||
username:
|
username:
|
||||||
|
@ -172,7 +172,7 @@ steps:
|
||||||
- yarn
|
- yarn
|
||||||
- yarn api-test
|
- yarn api-test
|
||||||
|
|
||||||
- name: build latest development version and push to docker hub
|
- name: publish dev docker image
|
||||||
image: plugins/docker
|
image: plugins/docker
|
||||||
settings:
|
settings:
|
||||||
dockerfile: docker/prod/Dockerfile.arm
|
dockerfile: docker/prod/Dockerfile.arm
|
||||||
|
@ -184,10 +184,10 @@ steps:
|
||||||
tags:
|
tags:
|
||||||
- dev-linux-arm64
|
- dev-linux-arm64
|
||||||
when:
|
when:
|
||||||
branch:
|
ref:
|
||||||
- main
|
- refs/heads/main
|
||||||
|
|
||||||
- name: push dev build to docker manifest
|
- name: publish dev docker manifest
|
||||||
image: plugins/manifest
|
image: plugins/manifest
|
||||||
settings:
|
settings:
|
||||||
username:
|
username:
|
||||||
|
@ -201,10 +201,10 @@ steps:
|
||||||
- linux/arm64
|
- linux/arm64
|
||||||
ignore_missing: true
|
ignore_missing: true
|
||||||
when:
|
when:
|
||||||
branch:
|
ref:
|
||||||
- main
|
- refs/heads/main
|
||||||
|
|
||||||
- name: make release build and push to docker hub
|
- name: publish release docker image
|
||||||
image: plugins/docker
|
image: plugins/docker
|
||||||
settings:
|
settings:
|
||||||
dockerfile: docker/prod/Dockerfile.arm
|
dockerfile: docker/prod/Dockerfile.arm
|
||||||
|
@ -219,7 +219,7 @@ steps:
|
||||||
ref:
|
ref:
|
||||||
- refs/tags/*
|
- refs/tags/*
|
||||||
|
|
||||||
- name: push to docker manifest
|
- name: publish release docker manifest
|
||||||
image: plugins/manifest
|
image: plugins/manifest
|
||||||
settings:
|
settings:
|
||||||
username:
|
username:
|
||||||
|
|
Loading…
Reference in a new issue