use build logic from main

This commit is contained in:
pat-s 2023-02-21 12:52:14 +01:00
parent 9d057eb1b6
commit 5c9edb5abe
No known key found for this signature in database
GPG Key ID: 3C6318841EF78925
1 changed files with 37 additions and 38 deletions

View File

@ -11,45 +11,45 @@ workspace:
path: src
steps:
- name: build
pull: always
image: golang:1.19
commands:
- make clean
- make build
- name: build
pull: always
image: golang:1.19
commands:
- make clean
- make build
- name: publish
pull: always
image: techknowlogick/drone-netlify:latest
settings:
path: public/
site_id: 05515f14-3702-4a84-9ff3-88ba90fe08dd
environment:
NETLIFY_TOKEN:
from_secret: netlify_token
when:
event:
- push
- name: publish
pull: always
image: techknowlogick/drone-netlify:latest
settings:
path: public/
site_id: 05515f14-3702-4a84-9ff3-88ba90fe08dd
environment:
NETLIFY_TOKEN:
from_secret: netlify_token
when:
event:
- push
- name: discord
pull: always
image: appleboy/drone-discord:1
environment:
DISCORD_WEBHOOK_ID:
from_secret: discord_webhook_id
DISCORD_WEBHOOK_TOKEN:
from_secret: discord_webhook_token
when:
event:
- push
- tag
status:
- changed
- failure
- name: discord
pull: always
image: appleboy/drone-discord:1
environment:
DISCORD_WEBHOOK_ID:
from_secret: discord_webhook_id
DISCORD_WEBHOOK_TOKEN:
from_secret: discord_webhook_token
when:
event:
- push
- tag
status:
- changed
- failure
trigger:
branch:
- main
- main
---
kind: pipeline
@ -67,11 +67,10 @@ trigger:
steps:
- name: build website
pull: always
image: klakegg/hugo:alpine-ci
image: golang:1.19
commands:
- apk add git
- git submodule update --init --recursive
- hugo
- make clean
- make build
- name: "[PR] create s3 bucket"
when: