Test update
This commit is contained in:
33
.gitea/workflows/test.yaml
Normal file
33
.gitea/workflows/test.yaml
Normal file
@@ -0,0 +1,33 @@
|
||||
name: Build with Kaniko
|
||||
|
||||
on: [push]
|
||||
|
||||
jobs:
|
||||
build-and-push:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Build and push with Kaniko
|
||||
uses: aevea/action-kaniko@master
|
||||
with:
|
||||
# Обязательные параметры
|
||||
registry: harbor.apps.kopikopi.com.ru
|
||||
username: ${{ secrets.HARBOR_USERNAME }}
|
||||
password: ${{ secrets.HARBOR_PASSWORD }}
|
||||
image: drone/test # Имя образа без registry
|
||||
tags: latest,${{ gitea.sha }}
|
||||
context: .
|
||||
dockerfile: Dockerfile
|
||||
cache: true
|
||||
cache-repo: harbor.apps.kopikopi.com.ru/proxy/cache
|
||||
build-args: |
|
||||
BUILD_DATE=${{ gitea.workflow.created }}
|
||||
VERSION=${{ gitea.sha }}
|
||||
|
||||
# Дополнительные флаги для kaniko
|
||||
extra-args: |
|
||||
--snapshot-mode=time
|
||||
--use-new-run
|
||||
--verbosity=info
|
||||
Reference in New Issue
Block a user