48 lines
1.1 KiB
YAML
48 lines
1.1 KiB
YAML
jobs:
|
|
- name: build-blastmud-image
|
|
public: true
|
|
build_log_retention:
|
|
days: 365
|
|
builds: 50
|
|
plan:
|
|
- get: blastmud-repo
|
|
trigger: true
|
|
- task: build
|
|
config:
|
|
platform: linux
|
|
image_resource:
|
|
type: registry-image
|
|
source:
|
|
repository: rust
|
|
inputs:
|
|
- name: blastmud-repo
|
|
caches:
|
|
- path: target
|
|
- path: .cargo
|
|
outputs:
|
|
- name: binaries
|
|
run:
|
|
path: blastmud-repo/.ci/build
|
|
- task: deploy
|
|
config:
|
|
platform: linux
|
|
image_resource:
|
|
type: registry-image
|
|
source:
|
|
repository: blasthavers/deploy-base
|
|
inputs:
|
|
- name: binaries
|
|
- name: blastmud-repo
|
|
params:
|
|
DEPLOY_KEY: ((deploy_key))
|
|
run:
|
|
path: blastmud-repo/.ci/deploy
|
|
resources:
|
|
- name: blastmud-repo
|
|
type: git
|
|
check_every: never
|
|
webhook_token: ((webhook_token))
|
|
source:
|
|
uri: https://git.blastmud.org/blasthavers/blastmud.git
|
|
branch: main
|