Compare commits
2 Commits
80f0298ac1
...
6fd7ab8c70
| Author | SHA1 | Date | |
|---|---|---|---|
| 6fd7ab8c70 | |||
| 137199165f |
@@ -1,25 +1,17 @@
|
|||||||
when:
|
when:
|
||||||
- event: [push, pull_request, manual, tag]
|
- event: [push, pull_request, manual]
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: generate-tags
|
|
||||||
image: ghcr.io/dvjn/woodpecker-docker-tags-plugin
|
|
||||||
settings:
|
|
||||||
tags: |
|
|
||||||
branch
|
|
||||||
sha
|
|
||||||
edge
|
|
||||||
raw -v build-${CI_PIPELINE_NUMBER}
|
|
||||||
semver --format {{major}}
|
|
||||||
semver --format {{major}}.{{minor}}
|
|
||||||
semver --format {{major}}.{{minor}}.{{patch}}
|
|
||||||
|
|
||||||
- name: docker
|
- name: docker
|
||||||
image: woodpeckerci/plugin-kaniko
|
image: woodpeckerci/plugin-kaniko
|
||||||
settings:
|
settings:
|
||||||
dockerfile: Dockerfile
|
dockerfile: Dockerfile
|
||||||
registry: harbor.ntppool.org
|
registry: harbor.ntppool.org
|
||||||
repo: library/static-web
|
repo: library/static-web
|
||||||
|
tags:
|
||||||
|
- ${CI_COMMIT_SHA:0:7}
|
||||||
|
- ${CI_COMMIT_BRANCH}
|
||||||
|
- ${{ CI_COMMIT_BRANCH == 'main' && 'latest' || CI_COMMIT_BRANCH }}
|
||||||
cache: true
|
cache: true
|
||||||
username:
|
username:
|
||||||
from_secret: harbor_library_username
|
from_secret: harbor_library_username
|
||||||
|
|||||||
Reference in New Issue
Block a user