ci: use --network=host and localhost for @cal/shared install
CI/CD / deploy (push) Failing after 1m20s
Details
CI/CD / deploy (push) Failing after 1m20s
Details
Docker build containers can't resolve 'server' hostname. Use --network=host with localhost:3000 instead. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
a78f6d6d40
commit
d46eda6d17
|
|
@ -31,7 +31,7 @@ jobs:
|
|||
|
||||
- name: Build and push image
|
||||
run: |
|
||||
docker build -t ${{ env.IMAGE }}:${{ env.IMAGE_TAG }} -t ${{ env.IMAGE }}:latest .
|
||||
docker build --network=host -t ${{ env.IMAGE }}:${{ env.IMAGE_TAG }} -t ${{ env.IMAGE }}:latest .
|
||||
echo "${{ secrets.REGISTRY_TOKEN }}" | docker login ${{ env.REGISTRY }} -u ${{ secrets.REGISTRY_USER }} --password-stdin
|
||||
docker push ${{ env.IMAGE }}:${{ env.IMAGE_TAG }}
|
||||
docker push ${{ env.IMAGE }}:latest
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ WORKDIR /app
|
|||
COPY package.json package-lock.json* ./
|
||||
|
||||
# Replace Gitea public URL with internal for CI builds
|
||||
RUN sed -i 's|https://gitea.jeffemmett.com|http://server:3000|g' package.json
|
||||
RUN sed -i 's|https://gitea.jeffemmett.com|http://localhost:3000|g' package.json
|
||||
|
||||
# Install dependencies
|
||||
RUN npm install
|
||||
|
|
|
|||
Loading…
Reference in New Issue