enabled queue pumping on backend #18
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-twitch-alerts-frontend | |
on: | |
push: | |
branches: | |
- 'main' | |
workflow_dispatch: | |
jobs: | |
docker: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4.1.4 | |
- name: Set up QEMU | |
uses: docker/setup-qemu-action@68827325e0b33c7199eb31dd4e31fbe9023e06e3 # v3.0.0 | |
- name: Set up Docker Buildx | |
uses: docker/setup-buildx-action@d70bba72b1f3fd22344832f00baa16ece964efeb # v3.3.0 | |
- name: Install latest nightly | |
uses: actions-rs/toolchain@b2417cde72dcf67f306c0ae8e0828a81bf0b189f # v1.0.6 | |
with: | |
toolchain: stable | |
default: true | |
target: wasm32-unknown-unknown | |
override: true | |
components: rustfmt, clippy | |
- name: Install Trunk | |
run: cargo install trunk | |
- name: Build UI | |
run: | | |
cd frontend/wasm | |
trunk build --release | |
- name: Login to Docker Hub | |
uses: docker/login-action@e92390c5fb421da1463c202d546fed0ec5c39f20 # v3.1.0 | |
with: | |
username: ${{ secrets.DH_USERNAME }} | |
password: ${{ secrets.DH_PASSWORD }} | |
- name: Build and push API | |
uses: docker/build-push-action@2cdde995de11925a030ce8070c3d77a52ffcf1c0 # v5.3.0 | |
with: | |
context: ./frontend/wasm/ | |
push: true | |
tags: nullchannel/twitch-alerts:${{ github.sha }} |