diff --git a/.gitea/workflows/test.yaml b/.gitea/workflows/test.yaml new file mode 100644 index 0000000..37fca37 --- /dev/null +++ b/.gitea/workflows/test.yaml @@ -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 diff --git a/README.md b/README.md new file mode 100644 index 0000000..8ae0569 --- /dev/null +++ b/README.md @@ -0,0 +1 @@ +# Test