fix config

This commit is contained in:
2026-01-01 22:34:14 +03:00
parent b4353e0c13
commit 4d1c34e0a5
2 changed files with 54 additions and 0 deletions

View File

@@ -0,0 +1,36 @@
name: Compile workflow.json and Build Project
run-name: ${{ gitea.actor }} is building 🚀
on:
push:
branches:
- main
workflow_dispatch:
inputs:
WORKFLOWJSON:
description: 'Workflow Json'
default: ''
image:
description: 'Docker Image'
required: true
default: myworkflow
jobs:
build-image:
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v4
- name: Capture Workflow Json into file
if: ${{ inputs.WORKFLOWJSON != '' }}
run: |
cat << 'EOF' > workflow.json
${{ inputs.WORKFLOWJSON }}
EOF
- name: Build project to image
run: |
docker build -t ${{ inputs.image || vars.IMAGE || 'myworkflow' }} .