Compare commits
13 Commits
Author | SHA1 | Date | |
---|---|---|---|
cc64344845 | |||
48f97b2be8 | |||
b44045a36b | |||
8608819642 | |||
ae78487aef | |||
51085a0a14 | |||
8d153cb5d8 | |||
7d7b1f457d | |||
3b89f4e4be | |||
b98fc73ea1 | |||
aaeac5bbfe | |||
012bb4ebb0 | |||
3cba6f1881 |
57
.drone.yml
Normal file
57
.drone.yml
Normal file
@ -0,0 +1,57 @@
|
||||
kind: pipeline
|
||||
type: docker
|
||||
name: Validate
|
||||
|
||||
steps:
|
||||
- name: Test
|
||||
image: golang:1.20
|
||||
commands:
|
||||
- make test
|
||||
- name: Build
|
||||
image: golang:1.20
|
||||
commands:
|
||||
- make build VERSION="test"
|
||||
---
|
||||
kind: pipeline
|
||||
type: docker
|
||||
name: Publish
|
||||
|
||||
steps:
|
||||
- name: Test
|
||||
image: golang:1.20
|
||||
commands:
|
||||
- make test
|
||||
- name: Build
|
||||
image: golang:1.20
|
||||
commands:
|
||||
- make build $VERSION
|
||||
- name: Example
|
||||
image: golang:1.20
|
||||
environment:
|
||||
USERNAME:
|
||||
from_secret: docker_username
|
||||
commands:
|
||||
- echo "Username is '$USERNAME'"
|
||||
- name: Docker
|
||||
image: plugins/docker
|
||||
settings:
|
||||
username:
|
||||
from_secret: docker_username
|
||||
password:
|
||||
from_secret: docker_password
|
||||
repo: yeslayla/birdbot
|
||||
tags:
|
||||
- latest
|
||||
- $VERSION
|
||||
---
|
||||
kind: secret
|
||||
name: docker_username
|
||||
get:
|
||||
path: secret/cloud/docker
|
||||
name: username
|
||||
---
|
||||
kind: secret
|
||||
name: docker_password
|
||||
get:
|
||||
path: secret/cloud/docker
|
||||
name: password
|
2
.github/workflows/publish_release.yaml
vendored
2
.github/workflows/publish_release.yaml
vendored
@ -9,7 +9,7 @@ on:
|
||||
jobs:
|
||||
publish:
|
||||
name: Build & Publish
|
||||
runs-on: ubuntu-latest
|
||||
runs-on: ubuntu-20.04
|
||||
steps:
|
||||
- name: Set up QEMU
|
||||
uses: docker/setup-qemu-action@v2
|
||||
|
@ -1,4 +1,6 @@
|
||||
FROM ubuntu:22.04
|
||||
FROM golang:1.20-bullseye
|
||||
|
||||
RUN apt update -y
|
||||
|
||||
COPY build/birdbot /usr/bin/birdbot
|
||||
|
||||
|
@ -28,3 +28,9 @@ In this example, your config is in the current directory and call `birdbot.yaml`
|
||||
|
||||
### Persistant Data
|
||||
|
||||
The default location for container data is `/var/lib/birdbot/` so you can mount it like:
|
||||
|
||||
Example:
|
||||
```bash
|
||||
docker run -it -v `pwd`:/var/lib/birdbot/ yeslayla/birdbot:latest
|
||||
```
|
||||
|
Reference in New Issue
Block a user