Skip to content

Commit

Permalink
Feat/check status api (#19)
Browse files Browse the repository at this point in the history
* feat: add check status api

---------

Co-authored-by: AndrewTran <[email protected]>
Co-authored-by: Andrew Tran <[email protected]>
  • Loading branch information
3 people authored Dec 10, 2024
1 parent 8645a50 commit 423d97c
Show file tree
Hide file tree
Showing 57 changed files with 1,416 additions and 266 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -60,3 +60,28 @@ jobs:
run: echo "PKG_CONFIG_PATH=/usr/lib/pkgconfig" >> $GITHUB_ENV
- name: Run tests
run: cargo tarpaulin --all-features --verbose --tests --skip-clean

build-and-push:
name: Build and push docker images to docker hub
env:
PKG_NAME: irelia-public-server
PKG_NAME_WORKER: irelia-worker
runs-on: ubuntu-latest
needs: [cargo-check, fmt-check, test-and-coverage]
steps:
- uses: actions/checkout@v4
- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}

- name: Build and push docker images
uses: docker/build-push-action@v4
with:
context: .
file: ./Dockerfile
push: true
tags: |
${{ secrets.DOCKERHUB_USERNAME }}/${{ PKG_NAME }}:latest
${{ secrets.DOCKERHUB_USERNAME }}/${{ PKG_NAME_WORKER }}:latest
Loading

0 comments on commit 423d97c

Please sign in to comment.