Compare commits

...

2 Commits

Author SHA1 Message Date
5b7fad82a9
build new image
All checks were successful
Build and publish container images / build-and-publish (push) Successful in 1m21s
2023-08-19 13:45:53 -07:00
3f44d37f8f
update file ownership in container 2023-08-19 13:40:47 -07:00
4 changed files with 14 additions and 15 deletions

View File

@ -2,10 +2,10 @@
name: Build and publish container images
on:
- workflow_dispatch
# push:
# branches:
# - master
# - workflow_dispatch
push:
branches:
- master
jobs:
build-and-publish:
@ -47,4 +47,4 @@ jobs:
# linux/arm/v6
build-args: |
DOC_UTILS_VERSION=0.2
NGINX_VERSION=1.25
NGINX_VERSION=1.25-alpine-slim

View File

@ -38,4 +38,4 @@ jobs:
# linux/arm/v6
build-args: |
DOC_UTILS_VERSION=0.2
NGINX_VERSION=1.25
NGINX_VERSION=1.25-alpine-slim

View File

@ -2,10 +2,10 @@
name: Deploy latest to staging environment
on:
# - workflow_dispatch
push:
branches:
- master
- workflow_dispatch
# push:
# branches:
# - master
jobs:
tag-image:

View File

@ -16,10 +16,9 @@ FROM nginx:${NGINX_VERSION} AS deploy_stage
EXPOSE 80
# copy actual web content built above
COPY --from=build_stage /workspace/www/ /usr/share/nginx/html
RUN chmod -R +rX /usr/share/nginx/html
COPY --from=build_stage --chown=nginx:nginx /workspace/www/ /usr/share/nginx/html
# nginx config files
COPY conf/nginx.conf /etc/nginx/nginx.conf
COPY conf/default.conf /etc/nginx/conf.d/default.conf
COPY conf/mime.types /etc/nginx/mime.types
COPY --chown=nginx:nginx conf/nginx.conf /etc/nginx/nginx.conf
COPY --chown=nginx:nginx conf/default.conf /etc/nginx/conf.d/default.conf
COPY --chown=nginx:nginx conf/mime.types /etc/nginx/mime.types