Compare commits
2 Commits
0b1aa05579
...
5b7fad82a9
Author | SHA1 | Date | |
---|---|---|---|
5b7fad82a9 | |||
3f44d37f8f |
@ -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
|
||||
|
@ -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
|
||||
|
@ -2,10 +2,10 @@
|
||||
name: Deploy latest to staging environment
|
||||
|
||||
on:
|
||||
# - workflow_dispatch
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
- workflow_dispatch
|
||||
# push:
|
||||
# branches:
|
||||
# - master
|
||||
|
||||
jobs:
|
||||
tag-image:
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user