dev-container/.drone.yml
James Harton 8ae908a956
All checks were successful
continuous-integration/drone/push Build is passing
chore: Add Rust container.
2023-08-25 12:23:18 +12:00

112 lines
2.6 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: code.harton.nz
repo: code.harton.nz/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: code.harton.nz
repo: code.harton.nz/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: code.harton.nz
repo: code.harton.nz/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