Skip to content

Commit

Permalink
ci: release with working dir
Browse files Browse the repository at this point in the history
  • Loading branch information
mghilardelli committed Jun 5, 2024
1 parent 5e00faa commit 6e1a099
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/release-webapp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,8 @@ jobs:
- name: Build and push
uses: docker/build-push-action@v5
with:
file: webapp/Dockerfile
build-contexts: project=webapp
file: Dockerfile
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
8 changes: 4 additions & 4 deletions webapp/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,22 +1,22 @@
FROM node:20.11.0-alpine as build

WORKDIR /build
COPY webapp/*.json webapp/*.js ./
COPY *.json *.js ./
RUN pwd
RUN ls -ls
RUN npm clean-install
COPY webapp/src/ ./src
COPY src/ ./src
RUN npm run build

FROM ghcr.io/nginxinc/nginx-unprivileged:1.25.3-alpine-slim

ADD --chmod=755 https://github.com/kyubisation/angular-server-side-configuration/releases/download/v17.0.2/ngssc_64bit /usr/sbin/ngssc

# Add ngssc script
ADD --chmod=755 webapp/docker/99-ngssc.sh /docker-entrypoint.d/
ADD --chmod=755 docker/99-ngssc.sh /docker-entrypoint.d/

# Add nginx configuration
ADD webapp/docker/nginx-angular.conf /etc/nginx/conf.d/default.conf
ADD docker/nginx-angular.conf /etc/nginx/conf.d/default.conf

# copy built application from build stage
COPY --from=build --chown=nginx:nginx --chmod=755 /build/dist/webapp /usr/share/nginx/html
Expand Down

0 comments on commit 6e1a099

Please sign in to comment.