-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (34 loc) · 999 Bytes
/
docker-testing.yml
File metadata and controls
42 lines (34 loc) · 999 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
name: MISP-Collector Docker Testing
on:
push:
branches: [ "dev" ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Go 1.19
uses: actions/setup-go@v2
with:
go-version: 1.19
id: go
- name: Check out code into the Go module directory
uses: actions/checkout@v2
- name: Fetch required Go modules
run: go mod download
- name: Build Binary
run: go build -v .
- name: Install Docker
uses: docker/setup-buildx-action@v1
- name: Login to GitHub Container Registry
uses: docker/login-action@v2
with:
registry: ghcr.io
username: AtlasInsideCorp
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build Image
uses: docker/build-push-action@v2
with:
context: /home/runner/work/UTMStackDatasourcesMISP/UTMStackDatasourcesMISP/
push: true
tags: ghcr.io/atlasinsidecorp/mispcollector:v9-testing