Skip to content

dev: started implementing new feature #11

dev: started implementing new feature

dev: started implementing new feature #11

Workflow file for this run

name: DevSecOps CLI CI/CD
on: [push, pull_request]
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install Rust
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
components: rustfmt, clippy
override: true
- name: Install cargo-audit
run: cargo install cargo-audit --locked
- name: Run tests
run: cargo test --all-features --workspace
- name: Security audit
run: cargo audit --deny warnings
- name: Format check
run: cargo fmt --all -- --check
release:
needs: test
runs-on: ubuntu-latest
if: startsWith(github.ref, 'refs/tags/v')
steps:
- uses: actions/checkout@v4
- name: Setup Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Login to DockerHub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build and push
uses: docker/build-push-action@v4
with:
context: .
platforms: linux/amd64,linux/arm64
push: true
tags: |
monokkay/devsecops-cli:latest
monokkay/devsecops-cli:${{ github.ref_name }}