forked from mbovo/distribution
-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (35 loc) · 1.12 KB
/
image-distribution.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
35
36
37
38
39
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 }}