feat: load htmx async to fasten FCP #30
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 Docker Image | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
docker: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Setup Nix | |
uses: cachix/install-nix-action@v27 | |
- name: Build Docker image | |
run: nix build .#docker | |
- name: Log in to GitHub Container Registry | |
run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u ${{ github.actor }} --password-stdin | |
- name: Load Docker image | |
run: | | |
docker load < result | |
docker tag drawbu.dev ghcr.io/${{ github.repository }}:latest | |
- name: Push Docker image to GitHub Container Registry | |
run: docker push ghcr.io/${{ github.repository }}:latest |