mirror of
https://github.com/volodymyrsmirnov/MalwareMultiScan.git
synced 2025-08-25 14:01:13 +00:00
github actions pipeline for API
This commit is contained in:
36
.github/workflows/api.yaml
vendored
Normal file
36
.github/workflows/api.yaml
vendored
Normal file
@@ -0,0 +1,36 @@
|
||||
name: API
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
paths:
|
||||
- 'MalwareMultiScan.Api/**'
|
||||
|
||||
jobs:
|
||||
docker_build_push:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
|
||||
- name: Set up QEMU
|
||||
uses: docker/setup-qemu-action@v1
|
||||
|
||||
- name: Set up Docker Buildx
|
||||
uses: docker/setup-buildx-action@v1
|
||||
|
||||
- name: Login to DockerHub
|
||||
uses: docker/login-action@v1
|
||||
with:
|
||||
username: mindcollapse
|
||||
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
||||
|
||||
- name: Build and push
|
||||
id: docker_build
|
||||
uses: docker/build-push-action@v2
|
||||
with:
|
||||
push: true
|
||||
context: MalwareMultiScan.Api
|
||||
file: MalwareMultiScan.Api/Dockerfile
|
||||
platforms: linux/amd64
|
||||
tags: mindcollapse/malware-multi-scan-api:latest
|
Reference in New Issue
Block a user