Skip to content

Commit

Permalink
chore: re-added removed files
Browse files Browse the repository at this point in the history
Signed-off-by: Ben Meier <[email protected]>
  • Loading branch information
astromechza committed Jul 10, 2024
1 parent d19f114 commit bfdd58e
Show file tree
Hide file tree
Showing 3 changed files with 81 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/release-to-dev.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Release to Dev Environment

on:
push:
branches: [main]

jobs:
build-and-push:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: Build and Push to Humanitec - Github Tag
uses: humanitec/build-push-to-humanitec@v1
with:
humanitec-token: ${{ secrets.HUMANITEC_TOKEN_HUMANITEC_LABS }}
organization: humanitec-labs
file: Dockerfile
image-name: score-docs
auto-tag: true

docs-build-and-push:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Build and Push to Humanitec - Github Tag
uses: humanitec/build-push-to-humanitec@v1
with:
humanitec-token: ${{ secrets.HUMANITEC_TOKEN }}
organization: documentation
file: Dockerfile
image-name: score-docs
auto-tag: true
32 changes: 32 additions & 0 deletions .github/workflows/release-to-prod.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Release to Production Environment

on:
release:
types: [released]

jobs:
build-and-push:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Build and Push to Humanitec - Github Tag
uses: humanitec/build-push-to-humanitec@v1
with:
humanitec-token: ${{ secrets.HUMANITEC_TOKEN_HUMANITEC_LABS }}
organization: humanitec-labs
file: Dockerfile
image-name: score-docs
auto-tag: true

docs-build-and-push:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Build and Push to Humanitec - Github Tag
uses: humanitec/build-push-to-humanitec@v1
with:
humanitec-token: ${{ secrets.HUMANITEC_TOKEN }}
organization: documentation
file: Dockerfile
image-name: score-docs
auto-tag: true
16 changes: 16 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# We use golang because hugo depends on Go as it's module downloader
FROM golang:alpine
# We then install shared libs and dynamic linking dependencies
RUN apk add --no-cache gcc g++ musl-dev git yarn gcompat npm

COPY . /src
WORKDIR /src

# Install all the packages
RUN yarn install

# Do an initial hugo build
RUN yarn hugo --verbose

# Run the hugo server at launch
CMD [ "yarn", "hugo", "server", "--themesDir", "../..", "--disableFastRender", "--renderToMemory", "--bind", "0.0.0.0" ]

0 comments on commit bfdd58e

Please sign in to comment.