-
Notifications
You must be signed in to change notification settings - Fork 0
34 lines (34 loc) · 1.08 KB
/
dockerize-finding-writer.yaml
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
name: Build and Push (Findings writer)
on:
workflow_dispatch:
inputs:
image-tag:
description: 'Image tag'
required: true
default: 'latest'
type: string
push:
branches:
- master
paths:
- "src/findings-to-bigquery/**"
jobs:
build-push:
runs-on: ubuntu-latest
steps:
-
name: Checkout code
uses: actions/checkout@v4
-
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:
context: ./src/findings-to-bigquery
tags: ${{ secrets.DOCKERHUB_USERNAME }}/sensihidepdf-findings-writer:${{ github.event.inputs.image-tag || 'latest' }}
push: true