From 07a54a69a263963c588faf417566eeb93007dc89 Mon Sep 17 00:00:00 2001 From: Andreas Rocznik Date: Wed, 12 Aug 2026 10:29:25 +0300 Subject: [PATCH] Add .github/workflows/veryfy_compose.yml --- .github/workflows/veryfy_compose.yml | 38 ++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 .github/workflows/veryfy_compose.yml diff --git a/.github/workflows/veryfy_compose.yml b/.github/workflows/veryfy_compose.yml new file mode 100644 index 0000000..06c5d41 --- /dev/null +++ b/.github/workflows/veryfy_compose.yml @@ -0,0 +1,38 @@ +name: VerifyCompose + +# This workflow uses actions that are not certified by GitHub. +# They are provided by a third-party and are governed by +# separate terms of service, privacy policy, and support +# documentation. + +on: + workflow_call: + inputs: + ref: # id of input + description: 'ref to tag e.g. refs/heads/main' + type: string + default: 'refs/heads/main' + tagname: # id of input + description: 'tag name (default: latest)' + default: 'latest' + type: string + + +jobs: + build: + runs-on: slim + permissions: + contents: write + + steps: + - name: Checkout repository + uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 + - name: Verify Compose File + run: docker compose config -q + - name: tag latest after success + if: ${{ github.ref == inputs.ref }} + id: tag + run: | + git tag -f ${{ inputs.tagname }} + git push --tags -f +