dev-container/.drone.yml
James Harton a243052c09
Some checks failed
continuous-integration/drone/push Build is failing
chore: Update forgejo and drone hostnames.
2024-02-09 10:53:05 +13:00

112 lines
2.8 KiB
YAML

kind: pipeline
type: docker
name: default
steps:
- name: retrieve build cache
image: meltwater/drone-cache
pull: true
environment:
AWS_ACCESS_KEY_ID:
from_secret: ACCESS_KEY_ID
AWS_SECRET_ACCESS_KEY:
from_secret: SECRET_ACCESS_KEY
AWS_PLUGIN_PATH_STYLE: true
settings:
restore: true
endpoint:
from_secret: S3_ENDPOINT
bucket:
from_secret: CACHE_BUCKET
region: us-east-1
path-style: true
mount: .docker-build-cache
- name: dev-container/base
image: thegeeklab/drone-docker-buildx:24
privileged: true
depends_on:
- retrieve build cache
settings:
username: james
password:
from_secret: REGISTRY_TOKEN
registry: harton.dev
repo: harton.dev/james/dev-container/base
cache_from: 'type=local\\,src=.docker-build-cache'
cache_to: "type=local,dest=.docker-build-cache"
provenance: false
context: ./base
dockerfile: ./base/Dockerfile
tags:
- latest
platforms:
- linux/arm64
- linux/amd64
- name: dev-container/elixir
image: thegeeklab/drone-docker-buildx:24
privileged: true
depends_on:
- dev-container/base
settings:
username: james
password:
from_secret: REGISTRY_TOKEN
registry: harton.dev
repo: harton.dev/james/dev-container/elixir
cache_from: 'type=local\\,src=.docker-build-cache'
cache_to: "type=local,dest=.docker-build-cache"
provenance: false
context: ./elixir
dockerfile: ./elixir/Dockerfile
tags:
- latest
platforms:
- linux/arm64
- linux/amd64
- name: dev-container/rust
image: thegeeklab/drone-docker-buildx:24
privileged: true
depends_on:
- dev-container/base
settings:
username: james
password:
from_secret: REGISTRY_TOKEN
registry: harton.dev
repo: harton.dev/james/dev-container/rust
cache_from: 'type=local\\,src=.docker-build-cache'
cache_to: "type=local,dest=.docker-build-cache"
provenance: false
context: ./rust
dockerfile: ./rust/Dockerfile
tags:
- latest
platforms:
- linux/arm64
- linux/amd64
- name: store build cache
image: meltwater/drone-cache
pull: true
environment:
AWS_ACCESS_KEY_ID:
from_secret: ACCESS_KEY_ID
AWS_SECRET_ACCESS_KEY:
from_secret: SECRET_ACCESS_KEY
AWS_PLUGIN_PATH_STYLE: true
depends_on:
- dev-container/base
- dev-container/elixir
- dev-container/rust
settings:
rebuild: true
endpoint:
from_secret: S3_ENDPOINT
bucket:
from_secret: CACHE_BUCKET
region: us-east-1
path-style: true
mount: .docker-build-cache