asdf_container/.drone.yml

61 lines
1.4 KiB
YAML
Raw Normal View History

2023-07-19 13:08:02 +12:00
kind: pipeline
type: docker
2023-07-19 17:41:57 +12:00
name: default
2023-07-19 16:29:22 +12:00
steps:
2024-02-12 10:27:26 +13:00
- 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
2024-02-12 10:27:26 +13:00
- name: build
image: thegeeklab/drone-docker-buildx:24
privileged: true
settings:
username: james
password:
from_secret: REGISTRY_TOKEN
registry: harton.dev
repo: harton.dev/james/asdf_container
cache_from: 'type=local\\,src=.docker-build-cache'
cache_to: "type=local,dest=.docker-build-cache"
provenance: false
tags:
- latest
platforms:
- linux/arm64
- linux/amd64
2023-07-19 16:29:22 +12:00
2024-02-12 10:27:26 +13:00
- 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
settings:
rebuild: true
endpoint:
from_secret: S3_ENDPOINT
bucket:
from_secret: CACHE_BUCKET
region: us-east-1
path-style: true
mount: .docker-build-cache