build #3
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |