mirror of
https://codeberg.org/VnPower/PixivFE
synced 2024-12-06 19:16:23 +01:00
ci: will work this time
This commit is contained in:
+8
-15
@@ -1,5 +1,11 @@
|
||||
variables:
|
||||
- &buildx_plugin 'woodpeckerci/plugin-docker-buildx:latest'
|
||||
- publish_logins: &publish_logins # Default DockerHub login
|
||||
- registry: https://index.docker.io/v1/
|
||||
username:
|
||||
from_secret: DOCKER_USERNAME
|
||||
password:
|
||||
from_secret: DOCKER_PASSWORD
|
||||
- path: &when_path
|
||||
# web source code
|
||||
- 'assets/**'
|
||||
@@ -11,23 +17,13 @@ variables:
|
||||
# pipeline config changes
|
||||
- '.woodpecker/docker.yaml'
|
||||
|
||||
when:
|
||||
- event: [ tag, release ]
|
||||
branch: [ v2 ]
|
||||
- event: [ push ]
|
||||
branch: [ v2 ]
|
||||
path: *when_path
|
||||
|
||||
steps:
|
||||
release:
|
||||
image: *buildx_plugin
|
||||
settings:
|
||||
dockerfile: Dockerfile
|
||||
repo: vnpower/pixivfe
|
||||
username:
|
||||
from_secret: DOCKER_USERNAME
|
||||
password:
|
||||
from_secret: DOCKER_PASSWORD
|
||||
logins: *publish_logins
|
||||
tag: [latest, '${CI_COMMIT_TAG}']
|
||||
when:
|
||||
- event: [ tag, release ]
|
||||
@@ -38,10 +34,7 @@ steps:
|
||||
settings:
|
||||
dockerfile: Dockerfile
|
||||
repo: vnpower/pixivfe
|
||||
username:
|
||||
from_secret: DOCKER_USERNAME
|
||||
password:
|
||||
from_secret: DOCKER_PASSWORD
|
||||
logins: *publish_logins
|
||||
tag: [next, 'next-${CI_COMMIT_SHA:0:10}']
|
||||
when:
|
||||
- event: [ push ]
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
variables:
|
||||
- &alpine_image 'alpine:3.19'
|
||||
- &git_image 'woodpeckerci/plugin-git:latest'
|
||||
- &mkdocs_image 'woodpeckerci/plugin-mkdocs:latest'
|
||||
- path: &docs_path
|
||||
|
||||
Reference in New Issue
Block a user