Skip to content

Build and Push (Findings writer) #18

Build and Push (Findings writer)

Build and Push (Findings writer) #18

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