Skip to content

Commit

Permalink
Revert "Another attempt at drone templates"
Browse files Browse the repository at this point in the history
This reverts commit 2d57178.
  • Loading branch information
zoickx committed Jan 30, 2023
1 parent 2d57178 commit 9bb02ff
Showing 1 changed file with 61 additions and 3 deletions.
64 changes: 61 additions & 3 deletions .drone.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,62 @@
---
kind: template
load: helix-template.yaml
data:
kind: pipeline
type: docker
name: default

steps:
- name: submodules
image: alpine/git
commands:
- git submodule update --init --recursive

- name: test-variables
image: docker
commands:
- echo {{ .repo.uid }}

- name: rebuild-cache
image: docker
volumes:
- name: dockersock
path: /var/run/docker.sock
commands:
- docker build --no-cache -t cache-{{ .repo.name }}-{{ .build.branch }} .
when:
event:
- cron
cron:
- rebuild-cache-{{ .build.branch }}

- name: build-vellvm
image: cache-{{ .repo.name }}-{{ .build.branch }}
pull: never
commands:
- opam exec -- make -j 1 vellvm

# - name: compile-helix
# image: cache-{{ .repo.name }}-{{ .build.branch }}
# pull: never
# commands:
# - opam exec -- make

# - name: test-helix
# image: cache-{{ .repo.name }}-{{ .build.branch }}
# pull: never
# commands:
# - opam exec -- make test

# - name: notify-slack
# image: plugins/slack
# settings:
# webhook:
# from_secret: slack_webhook
# channel: bitbucket-activity
# when:
# status:
# - failure
# - success

volumes:
- name: dockersock
host:
path: /var/run/docker.sock

0 comments on commit 9bb02ff

Please sign in to comment.