dev-container/.drone.yml
James Harton f8db5949a3
Some checks reported errors
continuous-integration/drone/push Build was killed
continuous-integration/drone Build is passing
chore: add Elixir container.
2023-08-25 09:23:02 +12:00

89 lines
2 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: 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
settings:
rebuild: true
endpoint:
from_secret: S3_ENDPOINT
bucket:
from_secret: CACHE_BUCKET
region: us-east-1
path-style: true
mount: .docker-build-cache