mirror of
https://github.com/LemmyNet/lemmy.git
synced 2025-01-07 10:42:19 +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 api-test
|
||||
|
||||
- name: build latest development version and push to docker hub
|
||||
- name: publish dev docker image
|
||||
image: plugins/docker
|
||||
settings:
|
||||
dockerfile: docker/prod/Dockerfile
|
||||
|
@ -67,10 +67,10 @@ steps:
|
|||
tags:
|
||||
- dev-linux-amd64
|
||||
when:
|
||||
branch:
|
||||
- main
|
||||
ref:
|
||||
- refs/heads/main
|
||||
|
||||
- name: push dev build to docker manifest
|
||||
- name: publish dev docker manifest
|
||||
image: plugins/manifest
|
||||
settings:
|
||||
username:
|
||||
|
@ -84,10 +84,10 @@ steps:
|
|||
- linux/arm64
|
||||
ignore_missing: true
|
||||
when:
|
||||
branch:
|
||||
- main
|
||||
ref:
|
||||
- refs/heads/main
|
||||
|
||||
- name: make release build and push to docker hub
|
||||
- name: publish release docker image
|
||||
image: plugins/docker
|
||||
settings:
|
||||
dockerfile: docker/prod/Dockerfile
|
||||
|
@ -102,7 +102,7 @@ steps:
|
|||
ref:
|
||||
- refs/tags/*
|
||||
|
||||
- name: push to docker manifest
|
||||
- name: publish release docker manifest
|
||||
image: plugins/manifest
|
||||
settings:
|
||||
username:
|
||||
|
@ -172,7 +172,7 @@ steps:
|
|||
- yarn
|
||||
- yarn api-test
|
||||
|
||||
- name: build latest development version and push to docker hub
|
||||
- name: publish dev docker image
|
||||
image: plugins/docker
|
||||
settings:
|
||||
dockerfile: docker/prod/Dockerfile.arm
|
||||
|
@ -184,10 +184,10 @@ steps:
|
|||
tags:
|
||||
- dev-linux-arm64
|
||||
when:
|
||||
branch:
|
||||
- main
|
||||
ref:
|
||||
- refs/heads/main
|
||||
|
||||
- name: push dev build to docker manifest
|
||||
- name: publish dev docker manifest
|
||||
image: plugins/manifest
|
||||
settings:
|
||||
username:
|
||||
|
@ -201,10 +201,10 @@ steps:
|
|||
- linux/arm64
|
||||
ignore_missing: true
|
||||
when:
|
||||
branch:
|
||||
- main
|
||||
ref:
|
||||
- refs/heads/main
|
||||
|
||||
- name: make release build and push to docker hub
|
||||
- name: publish release docker image
|
||||
image: plugins/docker
|
||||
settings:
|
||||
dockerfile: docker/prod/Dockerfile.arm
|
||||
|
@ -219,7 +219,7 @@ steps:
|
|||
ref:
|
||||
- refs/tags/*
|
||||
|
||||
- name: push to docker manifest
|
||||
- name: publish release docker manifest
|
||||
image: plugins/manifest
|
||||
settings:
|
||||
username:
|
||||
|
|
Loading…
Reference in a new issue