diff --git a/.gitea/workflows/build.yml b/.gitea/workflows/build.yml new file mode 100644 index 0000000..697c49f --- /dev/null +++ b/.gitea/workflows/build.yml @@ -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 . \ No newline at end of file