This commit is contained in:
parent
453c657681
commit
260ce5dfd3
1 changed files with 4 additions and 10 deletions
|
|
@ -30,11 +30,8 @@ steps:
|
|||
tags:
|
||||
- latest
|
||||
- "sha-${CI_COMMIT_SHA:0:8}"
|
||||
cache_from: "type=registry,ref=${FORGEJO_IMAGE}:buildcache"
|
||||
cache_to: "type=registry,ref=${FORGEJO_IMAGE}:buildcache,mode=max"
|
||||
environment:
|
||||
FORGEJO_IMAGE:
|
||||
from_secret: forgejo_image
|
||||
cache_from: "type=registry,ref=git.ihateamerica.ru/dv/intrabot:buildcache"
|
||||
cache_to: "type=registry,ref=git.ihateamerica.ru/dv/intrabot:buildcache,mode=max"
|
||||
when:
|
||||
- event: push
|
||||
branch: main
|
||||
|
|
@ -55,11 +52,8 @@ steps:
|
|||
- "${CI_COMMIT_TAG}" # v1.2.3
|
||||
- latest
|
||||
- "sha-${CI_COMMIT_SHA:0:8}" # всегда — нужно для отката
|
||||
cache_from: "type=registry,ref=${FORGEJO_IMAGE}:buildcache"
|
||||
cache_to: "type=registry,ref=${FORGEJO_IMAGE}:buildcache,mode=max"
|
||||
environment:
|
||||
FORGEJO_IMAGE:
|
||||
from_secret: forgejo_image
|
||||
cache_from: "type=registry,ref=git.ihateamerica.ru/dv/intrabot:buildcache"
|
||||
cache_to: "type=registry,ref=git.ihateamerica.ru/dv/intrabot:buildcache,mode=max"
|
||||
when:
|
||||
- event: tag
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue