first commit
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
nemunaire 2023-08-14 16:55:00 +02:00
commit 1175e57578
3 changed files with 98 additions and 0 deletions

22
.drone-manifest.yml Normal file
View File

@ -0,0 +1,22 @@
image: registry.nemunai.re/python-openai:{{#if build.tag}}{{trimPrefix "v" build.tag}}{{else}}latest{{/if}}
{{#if build.tags}}
tags:
{{#each build.tags}}
- {{this}}
{{/each}}
{{/if}}
manifests:
- image: registry.nemunai.re/python-openai:{{#if build.tag}}{{trimPrefix "v" build.tag}}-{{/if}}linux-amd64
platform:
architecture: amd64
os: linux
- image: registry.nemunai.re/python-openai:{{#if build.tag}}{{trimPrefix "v" build.tag}}-{{/if}}linux-arm64
platform:
architecture: arm64
os: linux
variant: v8
- image: registry.nemunai.re/python-openai:{{#if build.tag}}{{trimPrefix "v" build.tag}}-{{/if}}linux-arm
platform:
architecture: arm
os: linux
variant: v7

73
.drone.yml Normal file
View File

@ -0,0 +1,73 @@
---
kind: pipeline
type: docker
name: build-amd64
platform:
os: linux
arch: amd64
steps:
- name: docker build and publish
image: plugins/docker
settings:
username:
from_secret: docker_username
password:
from_secret: docker_password
registry: registry.nemunai.re
repo: registry.nemunai.re/python-openai
auto_tag: true
auto_tag_suffix: ${DRONE_STAGE_OS}-${DRONE_STAGE_ARCH}
when:
branch:
- master
---
kind: pipeline
type: docker
name: build-arm64
platform:
os: linux
arch: arm64
steps:
- name: docker build and publish
image: plugins/docker
settings:
username:
from_secret: docker_username
password:
from_secret: docker_password
registry: registry.nemunai.re
repo: registry.nemunai.re/python-openai
auto_tag: true
auto_tag_suffix: ${DRONE_STAGE_OS}-${DRONE_STAGE_ARCH}
when:
branch:
- master
---
kind: pipeline
name: docker-manifest
steps:
- name: publish manifest
image: plugins/manifest
settings:
auto_tag: true
ignore_missing: true
spec: .drone-manifest.yml
username:
from_secret: docker_username
password:
from_secret: docker_password
trigger:
event:
- push
- tag
depends_on:
- build-amd64
- build-arm64

3
Dockerfile Normal file
View File

@ -0,0 +1,3 @@
FROM python:3-alpine
RUN pip install openai