@@ -94,105 +94,3 @@ jobs:
9494 generate_release_notes : true
9595 env :
9696 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
97-
98-
99-
100- # name: release-images
101- #
102- # on:
103- # # Run as soon as the tag workflow finishes
104- # workflow_run:
105- # workflows: ["tag-repo-version"]
106- # types: [completed]
107- #
108- # jobs:
109- # build-and-push:
110- # # Only run if the tag workflow succeeded
111- # if: ${{ github.event.workflow_run.conclusion == 'success' }}
112- # runs-on: ubuntu-latest
113- # permissions:
114- # contents: read
115- # packages: write
116- #
117- # env:
118- # # The commit that tag-repo-version ran on (the tag points at this)
119- # SOURCE_SHA: ${{ github.event.workflow_run.head_sha }}
120- #
121- # strategy:
122- # matrix:
123- # service: [web, worker]
124- #
125- # steps:
126- # - name: Checkout (full history for tags)
127- # uses: actions/checkout@v4
128- # with:
129- # fetch-depth: 0
130- #
131- # - name: Fetch tags
132- # run: git fetch --tags --force
133- #
134- # - name: Resolve the tag that points at the workflow SHA
135- # id: tag
136- # shell: bash
137- # run: |
138- # set -euo pipefail
139- # echo "SOURCE_SHA=${SOURCE_SHA}"
140- # # Find tags that point at exactly this SHA; pick semver-ish vX.Y.Z
141- # TAG=$(git tag --points-at "${SOURCE_SHA}" | grep -E '^v[0-9]+\.[0-9]+\.[0-9]+$' | head -n1 || true)
142- # if [ -z "${TAG}" ]; then
143- # echo "No vX.Y.Z tag found pointing at ${SOURCE_SHA}"
144- # echo "Known tags for debugging:"
145- # git tag --points-at "${SOURCE_SHA}" || true
146- # exit 1
147- # fi
148- # echo "tag=${TAG}" >> "$GITHUB_OUTPUT"
149- # echo "Resolved tag: ${TAG}"
150- #
151- # - name: Check out the exact tagged revision
152- # run: git checkout ${{ steps.tag.outputs.tag }}
153- #
154- # - name: Set up QEMU
155- # uses: docker/setup-qemu-action@v3
156- #
157- # - name: Set up Buildx
158- # uses: docker/setup-buildx-action@v3
159- #
160- # - name: Log in to GHCR
161- # uses: docker/login-action@v3
162- # with:
163- # registry: ghcr.io
164- # username: ${{ github.actor }}
165- # password: ${{ secrets.GITHUB_TOKEN }}
166- #
167- # - name: Build & push ${{ matrix.service }}
168- # uses: docker/build-push-action@v6
169- # with:
170- # context: .
171- # file: apps/${{ matrix.service }}/Dockerfile
172- # push: true
173- # platforms: linux/amd64,linux/arm64
174- # # Tag with the resolved vX.Y.Z + "latest"
175- # tags: |
176- # ghcr.io/${{ github.repository_owner }}/kurrier-${{ matrix.service }}:${{ steps.tag.outputs.tag }}
177- # ghcr.io/${{ github.repository_owner }}/kurrier-${{ matrix.service }}:latest
178- # build-args: |
179- # NODE_ENV=production
180- # provenance: true
181- # sbom: true
182- #
183- # github-release:
184- # needs: build-and-push
185- # runs-on: ubuntu-latest
186- # permissions:
187- # contents: write
188- # steps:
189- # - name: Create GitHub Release
190- # uses: softprops/action-gh-release@v2
191- # with:
192- # tag_name: ${{ github.ref_name }}
193- # name: ${{ github.ref_name }}
194- # # tag_name: v${{ steps.v.outputs.ver }}
195- # # name: v${{ steps.v.outputs.ver }}
196- # generate_release_notes: true
197- # env:
198- # GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
0 commit comments