coba generate dockerfile
All checks were successful
Build and Test / build (push) Successful in 1m7s
All checks were successful
Build and Test / build (push) Successful in 1m7s
This commit is contained in:
26
.gitea/workflows/build.yml
Normal file
26
.gitea/workflows/build.yml
Normal file
@@ -0,0 +1,26 @@
|
|||||||
|
name: Build and Test
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- "main"
|
||||||
|
pull_request:
|
||||||
|
branches:
|
||||||
|
- "main"
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
runs-on: k8s-runner-00
|
||||||
|
env:
|
||||||
|
REGISTRY: registry.staging:5000
|
||||||
|
IMAGE_NAME: ${{ gitea.repository }}
|
||||||
|
IMAGE_TAG: ${{ gitea.sha }}
|
||||||
|
steps:
|
||||||
|
- name: Checkout repository
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- name: "Generate Dockerfile"
|
||||||
|
run: curl -o Dockerfile https://n8n.mceasy.cloud/webhook/generator/dockerfile
|
||||||
|
|
||||||
|
- name: "Build Docker Image"
|
||||||
|
run: docker build -t $REGISTRY/$IMAGE_NAME:$IMAGE_TAG .
|
||||||
Reference in New Issue
Block a user