Files
zkldi_Tachi/.github/workflows/bot.yml
T
zkldi bba153e656 ci: first attempt at general bits and bobs...
Obviously given the state of github yaml-engineering there's
no way I'm going to get this right on the first try
but hey ho. things *should* work.
2024-04-04 15:52:54 +01:00

38 lines
880 B
YAML

name: Bot CI/CD
on:
push:
branches:
- "main"
paths:
- "bot/**"
- "common/**"
workflow_dispatch:
jobs:
docker-push:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Docker Hub login
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_TOKEN }}
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Build and push
id: docker_build
uses: docker/build-push-action@v3
with:
context: ./
push: true
tags: ${{ secrets.DOCKER_USERNAME }}/tachi-bot:stable
file: ./Dockerfile.bot
cache-from: type=gha,scope=$GITHUB_REF_NAME-bot
cache-to: type=gha,mode=max,scope=$GITHUB_REF_NAME-bot