Skip to content

fix(deps): update rust crate tokio to v1.41.1 #83

fix(deps): update rust crate tokio to v1.41.1

fix(deps): update rust crate tokio to v1.41.1 #83

Workflow file for this run

name: Rust-cicd
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
env:
CARGO_TERM_COLOR: always
jobs:
build:
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- name: Build
run: cargo build --verbose
- name: Run tests
run: cargo test --verbose
docker:
needs: build
runs-on: ubuntu-latest
if: github.event_name == 'push'
steps:
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build and push
uses: docker/build-push-action@v6
with:
platforms: linux/arm64
push: true
tags: gudrb963/klassic-quote-api:latest
deploy:
needs: [build, docker]
runs-on: self-hosted
steps:
- name: run deploy.sh
run: |
cd /applications/klassic-quote-api
./deploy.sh