-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f9d1579
commit ff98c58
Showing
7 changed files
with
98 additions
and
47 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
tcp_nopush on; | ||
tcp_nodelay on; | ||
types_hash_max_size 2048; | ||
|
||
server { | ||
listen 8080 default_server; | ||
server_name _; | ||
root /usr/share/nginx/html; | ||
index index.html index.htm; | ||
|
||
location / { | ||
add_header Cache-Control "no-cache"; | ||
try_files $uri $uri/ /index.html =404; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
name: Continuous Integration | ||
on: [push, pull_request] | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-node@v3 | ||
with: | ||
cache: 'npm' | ||
node-version-file: '.nvmrc' | ||
- run: npm ci | ||
- run: npm run build | ||
- uses: actions/upload-artifact@v3 | ||
if: github.ref == 'refs/heads/main' | ||
with: | ||
name: showcase | ||
path: dist/ | ||
|
||
showcase: | ||
runs-on: ubuntu-latest | ||
needs: build | ||
if: github.ref == 'refs/heads/main' | ||
env: | ||
IMAGE_REPO: ghcr.io/${{ github.repository }}/showcase | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/download-artifact@v3 | ||
with: | ||
name: showcase | ||
path: dist/ | ||
- name: 'Container: Login to GitHub Container Repository' | ||
run: echo ${{ secrets.GITHUB_TOKEN }} | docker login ghcr.io --username ${{ github.actor }} --password-stdin | ||
- name: 'Container: Build image' | ||
run: docker build -t $IMAGE_REPO:latest . | ||
env: | ||
DOCKER_BUILDKIT: 1 | ||
- name: 'Container: Publish image' | ||
run: docker push $IMAGE_REPO:latest |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
name: Release | ||
on: | ||
push: | ||
tags: | ||
- '[0-9]+.[0-9]+.[0-9]+' | ||
- '[0-9]+.[0-9]+.[0-9]+-*' | ||
|
||
permissions: | ||
packages: write | ||
|
||
jobs: | ||
showcase: | ||
runs-on: ubuntu-latest | ||
env: | ||
IMAGE_REPO: ghcr.io/${{ github.repository }}/showcase | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-node@v3 | ||
with: | ||
cache: 'npm' | ||
node-version-file: '.nvmrc' | ||
- run: npm ci | ||
- run: npm run build | ||
|
||
- name: 'Container: Login to GitHub Container Repository' | ||
run: echo ${{ secrets.GITHUB_TOKEN }} | docker login ghcr.io --username ${{ github.actor }} --password-stdin | ||
- name: 'Container: Build image' | ||
run: docker build -t $IMAGE_REPO:${{ github.ref_name }} . | ||
env: | ||
DOCKER_BUILDKIT: 1 | ||
- name: 'Container: Publish image' | ||
run: docker push $IMAGE_REPO:${{ github.ref_name }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
18 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,7 @@ | ||
FROM cloud.docker.bin.sbb.ch/cloud/plattform-nginx:1.20.2-rootless | ||
FROM nginxinc/nginx-unprivileged:stable | ||
|
||
# Copy nginx configuration | ||
COPY ./.github/default.conf /etc/nginx/conf.d/default.conf | ||
|
||
# Copy dist files to nginx html folder | ||
COPY dist . | ||
COPY dist /usr/share/nginx/html |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters