Skip to content

Merge pull request #2 from draios/DEVOPS-12355-updating-go-on-distrib… #8

Merge pull request #2 from draios/DEVOPS-12355-updating-go-on-distrib…

Merge pull request #2 from draios/DEVOPS-12355-updating-go-on-distrib… #8

name: build and push
on:
# allows to manually run the workflow from the UI
workflow_dispatch:
inputs:
dry_run:
description: 'DryRun'
required: true
default: 'false'
pull_request:
types: [opened, edited, synchronize, reopened]
push:
branches:
- 'main'
- 'release/*'
tags:
- '*'
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: draios/infra-action-buildnpush@v1
with:
push_to_quay: true
image_name: "distribution"
image_description: "sysdig image for distribution"
context_path: "."
dockerfile: "Dockerfile"
dry_run: ${{ ! ((github.event_name == 'push' && github.ref == 'refs/heads/main') || (github.event_name == 'workflow_dispatch' && github.event.inputs.dry_run == 'false')) }}
artifactory_username: ${{ secrets.ARTIFACTORY_USERNAME }}
artifactory_password: ${{ secrets.ARTIFACTORY_PASSWORD }}
quay_username: ${{ secrets.QUAY_USERNAME }}
quay_password: ${{ secrets.QUAY_PASSWORD }}
github_token: ${{ secrets.GITHUB_TOKEN }}