Skip to content

build

build #3

Workflow file for this run

name: build
on: [workflow_dispatch]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: cachix/install-nix-action@v20
- uses: DeterminateSystems/magic-nix-cache-action@main
- name: build
run: nix build .
- name: Load Docker Image
run: |
nix build .#dockerImage
docker load < result
- name: Login Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Push Docker Image
run: |
docker tag llonebot:latest initialencounter/llonebot:latest
docker push initialencounter/llonebot:latest