Fixing build
Some checks failed
Anatid Blog CI Workflow / build-and-push-images (./backend/Dockerfile, git.anatid.net/tabris/anatid-blog-backend, ./backend) (push) Failing after 18s
Anatid Blog CI Workflow / build-and-push-images (./frontend/Dockerfile, git.anatid.net/tabris/anatid-blog-frontend, ./frontend) (push) Failing after 21s
Some checks failed
Anatid Blog CI Workflow / build-and-push-images (./backend/Dockerfile, git.anatid.net/tabris/anatid-blog-backend, ./backend) (push) Failing after 18s
Anatid Blog CI Workflow / build-and-push-images (./frontend/Dockerfile, git.anatid.net/tabris/anatid-blog-frontend, ./frontend) (push) Failing after 21s
This commit is contained in:
parent
9682a263fd
commit
9a76690d5b
@ -22,8 +22,6 @@ jobs:
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
- name: CD to app folder
|
||||
run: cd ${{ matrix.workingdir }} && ls -al
|
||||
- name: Loging to docker hub registry
|
||||
uses: docker/login-action@v3
|
||||
with:
|
||||
@ -37,14 +35,13 @@ jobs:
|
||||
password: ${{ secrets.REPO_PASSWORD }}
|
||||
- name: Set up Docker Buildx
|
||||
uses: docker/setup-buildx-action@v3
|
||||
working-directory: ./${{ matrix.workingdir }}
|
||||
- name: Extract metadata (tags, labels) for Docker
|
||||
id: meta
|
||||
uses: docker/metadata-action@v5
|
||||
working-directory: ./${{ matrix.workingdir }}
|
||||
with:
|
||||
images: ${{ matrix.image }}
|
||||
- name: Check build
|
||||
run: ls -al
|
||||
working-directory: ./${{ matrix.workingdir }}
|
||||
- name: Build and push
|
||||
uses: docker/build-push-action@v6
|
||||
working-directory: ./${{ matrix.workingdir }}
|
||||
|
@ -1,5 +1,5 @@
|
||||
# Build Stage
|
||||
FROM node:23-alpine
|
||||
FROM node:23-alpine AS build
|
||||
WORKDIR /app
|
||||
COPY package*.json ./
|
||||
RUN npm install
|
||||
@ -9,6 +9,6 @@ RUN npm run build
|
||||
|
||||
# Production Stage
|
||||
FROM nginx:stable-alpine AS production
|
||||
COPY --from=build /app/build /usr/share/nginx/html
|
||||
COPY --from=build /app/dist /usr/share/nginx/html
|
||||
EXPOSE 80
|
||||
CMD ["nginx", "-g", "daemon off;"]
|
||||
|
Loading…
x
Reference in New Issue
Block a user