From c939db05f55f5922fb32a30cfe82e33a1014294f Mon Sep 17 00:00:00 2001 From: cloudix_mcp_server Date: Fri, 12 Jun 2026 19:46:00 -0400 Subject: [PATCH] feat(ci): add PR workflow with hadolint and build --- .gitea/workflows/pr.yaml | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 .gitea/workflows/pr.yaml diff --git a/.gitea/workflows/pr.yaml b/.gitea/workflows/pr.yaml new file mode 100644 index 0000000..5d21041 --- /dev/null +++ b/.gitea/workflows/pr.yaml @@ -0,0 +1,37 @@ +name: PR - Docker Build + +on: + pull_request: + branches: [master] + +jobs: + hadolint: + runs-on: ubuntu-latest + continue-on-error: true + steps: + - name: Checkout + uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6 + + - name: Hadolint Dockerfile + uses: docker://hadolint/hadolint:v2.12.0 + with: + args: Dockerfile + + build: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6 + with: + fetch-depth: 0 + + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@d7f5e7f509e45cec5c76c4d5afdd7de93d0b3df5 # v4 + + - name: Build + uses: docker/build-push-action@f9f3042f7e2789586610d6e8b85c8f03e5195baf # v7.2.0 + with: + context: . + push: false + tags: jcabillot/huawei-3g-sms-api:${{ github.sha }} + pull: true