Merge branch 'main' into the-federation-layer-v0.6.0

This commit is contained in:
Reckless_Satoshi 2024-01-11 18:21:29 +00:00 committed by GitHub
commit 8af3edad6f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 13 additions and 16 deletions

View File

@ -22,7 +22,7 @@ jobs:
- uses: actions/checkout@v4
- name: 'Copy Static' # Needed since Github actions does not support symlinks
run: cp -r frontend/static nodeapp/static
run: cp -r frontend/static web/static
- name: 'Download main.js Artifact'
if: inputs.semver == '' # Only if workflow fired from frontend-build.yml
@ -31,14 +31,14 @@ jobs:
workflow: frontend-build.yml
workflow_conclusion: success
name: web-main-js
path: nodeapp/static/frontend/
path: web/static/frontend/
- name: 'Download main.js Artifact for a release'
if: inputs.semver != '' # Only if fired as job in release.yml
uses: actions/download-artifact@v4
with:
name: web-main-js
path: nodeapp/static/frontend/
path: web/static/frontend/
- name: 'Download pro.js Artifact'
if: inputs.semver == '' # Only if workflow fired from frontend-build.yml
@ -47,14 +47,14 @@ jobs:
workflow: frontend-build.yml
workflow_conclusion: success
name: web-pro-js
path: nodeapp/static/frontend/
path: web/static/frontend/
- name: 'Download pro.js Artifact for a release'
if: inputs.semver != '' # Only if fired as job in release.yml
uses: actions/download-artifact@v4
with:
name: web-pro-js
path: nodeapp/static/frontend/
path: web/static/frontend/
- name: 'Log in to Docker Hub'
uses: docker/login-action@v3
@ -87,7 +87,7 @@ jobs:
- name: 'Build and push Docker image'
uses: docker/build-push-action@v5
with:
context: ./nodeapp
context: ./web
platforms: linux/amd64,linux/arm64
push: true
tags: ${{ steps.meta.outputs.tags }}

View File

@ -14,13 +14,11 @@ RUN set -x \
COPY . .
COPY ./nginx.conf /etc/nginx/nginx.conf
COPY ./coordinators/ /etc/nginx/conf.d/
RUN apk -U --no-cache upgrade \
&& apk --no-cache add socat \
&& apk --no-cache add nginx
EXPOSE 12596
HEALTHCHECK CMD curl --fail http://localhost:12596/selfhosted || exit 1
EXPOSE 80
HEALTHCHECK CMD curl --fail http://localhost:80 || exit 1
CMD ["sh", "robosats-client.sh"]
CMD ["sh", "run.sh"]

View File

@ -28,11 +28,8 @@ http {
server {
listen 12596;
server_name robosats_client;
# add_header Access-Control-Allow-Headers "*";
# add_header Access-Control-Allow-Origin "*";
listen 80;
server_name robosats_web_client;
location / {
root /usr/src/robosats;

2
web/run.sh Normal file
View File

@ -0,0 +1,2 @@
#!/bin/sh
nginx