-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (37 loc) · 1 KB
/
docker-release.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
40
41
---
# yaml-language-server: $schema=https://json.schemastore.org/github-workflow.json
name: Docker Release
on:
workflow_dispatch:
inputs:
dry-run:
description: Dry Run
default: true
required: false
type: boolean
custom-tag:
type: string
description: Additional custom tags for the image.
required: false
pull_request:
branches: ["main"]
paths:
- .github/workflows/docker-release.yaml
- Dockerfile
- requirements.txt
push:
tags: ["*"]
jobs:
release:
uses: mirceanton/reusable-workflows/.github/workflows/reusable-docker-build-push.yaml@f8a15cef06b25b9ba5fe77ffcf4f4f2810adf1c5 # v3.4.20 secrets: inherit
secrets: inherit
with:
image: ghcr.io/${{ github.repository }}
platforms: linux/amd64
tags: |
type=ref,event=tag
type=ref,event=pr
${{ inputs.custom-tag }}
context: .
dockerfile: ./Dockerfile
dry-run: "${{ inputs.dry-run == true }}"