Skip to content

Commit

Permalink
Drone templates #3
Browse files Browse the repository at this point in the history
  • Loading branch information
zoickx committed Jan 30, 2023
1 parent 9bb02ff commit 5b3ea36
Showing 1 changed file with 22 additions and 12 deletions.
34 changes: 22 additions & 12 deletions .drone.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,23 +9,33 @@ steps:
commands:
- git submodule update --init --recursive

- name: test-variables
- name: test-basic-env
image: docker
commands:
- echo {{ .repo.uid }}
- echo $DRONE_BRANCH

- name: rebuild-cache
- name: test-fancy-env: ${DRONE_BRANCH}
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 }}
- echo $DONE_BRANCH

- name: test-fancier-env
image: ${DRONE_BRANCH}
commands:
- echo $DONE_BRANCH

# - 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 }}
Expand Down

0 comments on commit 5b3ea36

Please sign in to comment.