Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
170 changes: 85 additions & 85 deletions .drone.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ name: arm64
platform:
arch: arm64

steps:
steps:
- name: submodules
image: alpine/git
commands:
Expand Down Expand Up @@ -96,41 +96,41 @@ trigger:
- push

---
kind: pipeline
type: docker
name: gpu

platform:
arch: amd64

steps:
- name: submodules
image: alpine/git
commands:
- git submodule init
- 'git config --global url."https://github.com/".insteadOf [email protected]:'
- "git submodule update --recursive"
- name: build and publish
image: plugins/docker
settings:
registry: registry.dev.kern.ai
username:
from_secret: docker_username
password:
from_secret: docker_password
dockerfile: gpu.Dockerfile
repo: "registry.dev.kern.ai/${DRONE_REPO}"
tags: ["${DRONE_COMMIT_SHA}-gpu", "${DRONE_COMMIT_BRANCH}-gpu"]
cache_from:
- "registry.dev.kern.ai/${DRONE_REPO}:${DRONE_COMMIT_BRANCH}-gpu"

trigger:
branch:
- dev
event:
- push

---
# kind: pipeline
# type: docker
# name: gpu

# platform:
# arch: amd64

# steps:
# - name: submodules
# image: alpine/git
# commands:
# - git submodule init
# - 'git config --global url."https://github.com/".insteadOf [email protected]:'
# - "git submodule update --recursive"
# - name: build and publish
# image: plugins/docker
# settings:
# registry: registry.dev.kern.ai
# username:
# from_secret: docker_username
# password:
# from_secret: docker_password
# dockerfile: gpu.Dockerfile
# repo: "registry.dev.kern.ai/${DRONE_REPO}"
# tags: ["${DRONE_COMMIT_SHA}-gpu", "${DRONE_COMMIT_BRANCH}-gpu"]
# cache_from:
# - "registry.dev.kern.ai/${DRONE_REPO}:${DRONE_COMMIT_BRANCH}-gpu"

# trigger:
# branch:
# - dev
# event:
# - push

# ---
kind: pipeline
type: docker
name: amd64-dockerhub
Expand Down Expand Up @@ -160,12 +160,42 @@ trigger:
- tag

---
# kind: pipeline
# type: docker
# name: amd64-gpu-dockerhub

# platform:
# arch: amd64

# steps:
# - name: submodules
# image: alpine/git
# commands:
# - git submodule init
# - 'git config --global url."https://github.com/".insteadOf [email protected]:'
# - "git submodule update --recursive"
# - name: build and publish
# image: plugins/docker
# settings:
# username:
# from_secret: dockerhub_username
# password:
# from_secret: dockerhub_password
# dockerfile: gpu.Dockerfile
# repo: "kernai/${DRONE_REPO_NAME}"
# tag: "${DRONE_TAG}-gpu"

# trigger:
# event:
# - tag

# ---
kind: pipeline
type: docker
name: amd64-gpu-dockerhub
name: arm64-dockerhub

platform:
arch: amd64
arch: arm64

steps:
- name: submodules
Expand All @@ -181,57 +211,27 @@ steps:
from_secret: dockerhub_username
password:
from_secret: dockerhub_password
dockerfile: gpu.Dockerfile
repo: "kernai/${DRONE_REPO_NAME}"
tag: "${DRONE_TAG}-gpu"
tag: "${DRONE_TAG}-drone-arm64"

trigger:
event:
- tag

---
kind: pipeline
type: docker
name: arm64-dockerhub

platform:
arch: arm64

name: manifest-version
steps:
- name: submodules
image: alpine/git
commands:
- git submodule init
- 'git config --global url."https://github.com/".insteadOf [email protected]:'
- "git submodule update --recursive"
- name: build and publish
image: plugins/docker
- name: manifest
image: plugins/manifest
settings:
spec: drone-manifest-version.tmpl
tag: "${DRONE_TAG}"
ignore_missing: true
username:
from_secret: dockerhub_username
password:
from_secret: dockerhub_password
repo: "kernai/${DRONE_REPO_NAME}"
tag: "${DRONE_TAG}-drone-arm64"

trigger:
event:
- tag

---
kind: pipeline
name: manifest-version
steps:
- name: manifest
image: plugins/manifest
settings:
spec: drone-manifest-version.tmpl
tag: "${DRONE_TAG}"
ignore_missing: true
username:
from_secret: dockerhub_username
password:
from_secret: dockerhub_password

depends_on:
- amd64-dockerhub
Expand All @@ -245,16 +245,16 @@ trigger:
kind: pipeline
name: manifest-latest
steps:
- name: manifest
image: plugins/manifest
settings:
spec: drone-manifest-latest.tmpl
tag: "${DRONE_TAG}"
ignore_missing: true
username:
from_secret: dockerhub_username
password:
from_secret: dockerhub_password
- name: manifest
image: plugins/manifest
settings:
spec: drone-manifest-latest.tmpl
tag: "${DRONE_TAG}"
ignore_missing: true
username:
from_secret: dockerhub_username
password:
from_secret: dockerhub_password

depends_on:
- manifest-version
Expand Down