@@ -124,52 +124,52 @@ jobs:
124124 git ls-remote --tags origin | grep "refs/tags/${{ steps.tag_version.outputs.next_version }}" || (echo "Tag push verification failed!" && exit 1)
125125 echo "Tag successfully pushed."
126126
127- build_and_push_backend_image :
128- runs-on : ubuntu-latest
129- needs : tag_release # Depends on the tag being created successfully
130- permissions :
131- packages : write # Need permission to write to GHCR
132- contents : read # Need permission to read repo contents (checkout)
133-
134- steps :
135- - name : Checkout code
136- uses : actions/checkout@v4
137-
138- - name : Login to GitHub Container Registry
139- uses : docker/login-action@v3
140- with :
141- registry : ghcr.io
142- username : ${{ github.repository_owner }}
143- password : ${{ secrets.GITHUB_TOKEN }}
144-
145- - name : Set up QEMU
146- uses : docker/setup-qemu-action@v3
147-
148- - name : Set up Docker Buildx
149- uses : docker/setup-buildx-action@v3
150-
151- - name : Extract metadata (tags, labels) for Docker build
152- id : meta
153- uses : docker/metadata-action@v5
154- with :
155- images : ghcr.io/${{ github.repository_owner }}/surfsense_backend
156- tags : |
157- # Use the tag generated in the previous job
158- type=raw,value=${{ needs.tag_release.outputs.new_tag }}
159- # Optionally add 'latest' tag if building from the default branch
160- type=raw,value=latest,enable=${{ github.ref == format('refs/heads/{0}', github.event.repository.default_branch) || github.event.inputs.branch == github.event.repository.default_branch }}
161-
162- - name : Build and push surfsense backend
163- uses : docker/build-push-action@v5
164- with :
165- context : ./surfsense_backend
166- push : true
167- tags : ${{ steps.meta.outputs.tags }}
168- labels : ${{ steps.meta.outputs.labels }}
169- platforms : linux/amd64,linux/arm64
170- # Optional: Add build cache for faster builds
171- cache-from : type=gha
172- cache-to : type=gha,mode=max
127+ # build_and_push_backend_image:
128+ # runs-on: ubuntu-latest
129+ # needs: tag_release # Depends on the tag being created successfully
130+ # permissions:
131+ # packages: write # Need permission to write to GHCR
132+ # contents: read # Need permission to read repo contents (checkout)
133+
134+ # steps:
135+ # - name: Checkout code
136+ # uses: actions/checkout@v4
137+
138+ # - name: Login to GitHub Container Registry
139+ # uses: docker/login-action@v3
140+ # with:
141+ # registry: ghcr.io
142+ # username: ${{ github.repository_owner }}
143+ # password: ${{ secrets.GITHUB_TOKEN }}
144+
145+ # - name: Set up QEMU
146+ # uses: docker/setup-qemu-action@v3
147+
148+ # - name: Set up Docker Buildx
149+ # uses: docker/setup-buildx-action@v3
150+
151+ # - name: Extract metadata (tags, labels) for Docker build
152+ # id: meta
153+ # uses: docker/metadata-action@v5
154+ # with:
155+ # images: ghcr.io/${{ github.repository_owner }}/surfsense_backend
156+ # tags: |
157+ # # Use the tag generated in the previous job
158+ # type=raw,value=${{ needs.tag_release.outputs.new_tag }}
159+ # # Optionally add 'latest' tag if building from the default branch
160+ # type=raw,value=latest,enable=${{ github.ref == format('refs/heads/{0}', github.event.repository.default_branch) || github.event.inputs.branch == github.event.repository.default_branch }}
161+
162+ # - name: Build and push surfsense backend
163+ # uses: docker/build-push-action@v5
164+ # with:
165+ # context: ./surfsense_backend
166+ # push: true
167+ # tags: ${{ steps.meta.outputs.tags }}
168+ # labels: ${{ steps.meta.outputs.labels }}
169+ # platforms: linux/amd64,linux/arm64
170+ # # Optional: Add build cache for faster builds
171+ # cache-from: type=gha
172+ # cache-to: type=gha,mode=max
173173
174174 build_and_push_ui_image :
175175 runs-on : ubuntu-latest
0 commit comments