Update drone pipeline
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Simon Marsh 2021-12-30 10:15:48 +00:00
parent 8cde2ae854
commit bcfb5828bd
Signed by: burble
GPG Key ID: 0FCCD13AE1CF7ED8
2 changed files with 37 additions and 8 deletions

View File

@ -1,21 +1,50 @@
---
kind: pipeline
type: exec
type: docker
name: default
steps:
- name: build
image: golang
environment:
CGO_ENABLED: 0
commands:
- go vet
- go build
- name: stage
image: alpine
commands:
- stage_artifact.sh dn42grcd dn42grcd StaticRoot
- mkdir artifacts
- mv dn42grcd artifacts/
- tar -cvzf artifacts/StaticRoot.tar.gz StaticRoot
- name: upload
image: plugins/s3
settings:
bucket: artifacts
access_key:
from_secret: MINIO_ACCESS_KEY
secret_key:
from_secret: MINIO_SECRET_KEY
endpoint: https://minio.burble.dn42
region: uk-lon3
path_style: true
source: artifacts/*
strip_prefix: artifacts/
target: /dn42grcd/${DRONE_BRANCH}
---
kind: secret
name: MINIO_ACCESS_KEY
get:
path: burble.dn42/kv/data/drone/minio
name: ACCESS_KEY
---
kind: secret
name: MINIO_SECRET_KEY
get:
path: burble.dn42/kv/data/drone/minio
name: SECRET_KEY
- name: promote
commands:
- promote_artifact.sh dn42grcd
when:
branch: main

View File

@ -50,7 +50,7 @@
<app-timer class="float-right"></app-timer>
<b-nav tabs>
<b-nav-item to="flaps" exact exact-active-class="active">Flapping Routes</b-nav-item>
<b-nav-item to="roa" exact exact-active-class="active">ROA Failures</b-nav-item>
<!-- <b-nav-item to="roa" exact exact-active-class="active">ROA Failures</b-nav-item> -->
</b-nav>
</div>