From 5b3ea36cd3b1ac3475013970b2a7608a48e5e7ab Mon Sep 17 00:00:00 2001 From: Ilia Zaichuk Date: Mon, 30 Jan 2023 16:55:11 +0200 Subject: [PATCH] Drone templates #3 --- .drone.yml | 34 ++++++++++++++++++++++------------ 1 file changed, 22 insertions(+), 12 deletions(-) diff --git a/.drone.yml b/.drone.yml index f2715d36..0807d2b4 100644 --- a/.drone.yml +++ b/.drone.yml @@ -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 }}