mirror of
https://github.com/Pagwin-Fedora/website.git
synced 2025-07-18 05:25:42 +00:00
minor correction to the docker build and 2 docker container build steps
This commit is contained in:
parent
774dabea88
commit
a0abdcbf8f
2 changed files with 13 additions and 3 deletions
14
.github/workflows/website-publish.yml
vendored
14
.github/workflows/website-publish.yml
vendored
|
@ -39,14 +39,24 @@ jobs:
|
||||||
# This step uses the `docker/build-push-action` action to build the image, based on your repository's `Dockerfile`. If the build succeeds, it pushes the image to GitHub Packages.
|
# This step uses the `docker/build-push-action` action to build the image, based on your repository's `Dockerfile`. If the build succeeds, it pushes the image to GitHub Packages.
|
||||||
# It uses the `context` parameter to define the build's context as the set of files located in the specified path. For more information, see "[Usage](https://github.com/docker/build-push-action#usage)" in the README of the `docker/build-push-action` repository.
|
# It uses the `context` parameter to define the build's context as the set of files located in the specified path. For more information, see "[Usage](https://github.com/docker/build-push-action#usage)" in the README of the `docker/build-push-action` repository.
|
||||||
# It uses the `tags` and `labels` parameters to tag and label the image with the output from the "meta" step.
|
# It uses the `tags` and `labels` parameters to tag and label the image with the output from the "meta" step.
|
||||||
- name: Build and push Docker image
|
- name: Build and push Docker image(no comments)
|
||||||
uses: docker/build-push-action@f2a1d5e99d037542a71f64918e516c093c6f3fc4
|
uses: docker/build-push-action@f2a1d5e99d037542a71f64918e516c093c6f3fc4
|
||||||
with:
|
with:
|
||||||
context: .
|
context: .
|
||||||
push: true
|
push: true
|
||||||
# https://github.com/docker/metadata-action#basic
|
# https://github.com/docker/metadata-action#basic
|
||||||
tags: user/website_frontend:latest , user/website_frontend:${{ steps.meta.outputs.sha }}
|
tags: user/website_frontend:latest
|
||||||
labels: ${{ steps.meta.outputs.labels }}
|
labels: ${{ steps.meta.outputs.labels }}
|
||||||
|
- name: Build and push Docker image(yes comments)
|
||||||
|
uses: docker/build-push-action@f2a1d5e99d037542a71f64918e516c093c6f3fc4
|
||||||
|
with:
|
||||||
|
context: .
|
||||||
|
push: true
|
||||||
|
# https://github.com/docker/metadata-action#basic
|
||||||
|
tags: user/website_frontend:latest
|
||||||
|
labels: ${{ steps.meta.outputs.labels }}
|
||||||
|
build-args:
|
||||||
|
- COMMENTS_BACKEND=comments_backend
|
||||||
#jobs:
|
#jobs:
|
||||||
# build:
|
# build:
|
||||||
# runs-on: ubuntu-latest
|
# runs-on: ubuntu-latest
|
||||||
|
|
|
@ -6,7 +6,7 @@ ADD . /root/
|
||||||
WORKDIR /root
|
WORKDIR /root
|
||||||
# pass in the uri or ip of the comments api so nginx can forward to it
|
# pass in the uri or ip of the comments api so nginx can forward to it
|
||||||
ARG COMMENTS_BACKEND
|
ARG COMMENTS_BACKEND
|
||||||
ENV COMMENTS_BACKEND=${WITH_BACKEND}
|
ENV COMMENTS_BACKEND=${COMMENTS_BACKEND}
|
||||||
RUN ["/usr/bin/hugo", "--minify"]
|
RUN ["/usr/bin/hugo", "--minify"]
|
||||||
|
|
||||||
FROM python:3.11-alpine as fiddling
|
FROM python:3.11-alpine as fiddling
|
||||||
|
|
Loading…
Reference in a new issue