Merge pull request #562 from bytedance/feat-golangbin #247
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: Elkeid_plugin_scanner | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
submodules: recursive | |
- name: Set up Docker Buildx | |
uses: docker/setup-buildx-action@v1 | |
- name: Build Scanner | |
uses: docker/build-push-action@v2 | |
with: | |
file: plugins/scanner/docker/Dockerfile | |
load: true | |
tags: elkeid/scanner:latest | |
- name: Extract Scanner | |
id: extract-scanner | |
uses: shrink/actions-docker-extract@v1 | |
with: | |
image: elkeid/scanner:latest | |
path: /Elkeid/plugins/scanner/output/. | |
- name: Upload Scanner | |
uses: actions/upload-artifact@v3 | |
with: | |
path: ${{ steps.extract-scanner.outputs.destination }} | |
name: scanner |