removed sh
This commit is contained in:
parent
1cbec0fe78
commit
3f0d0ab3c4
6 changed files with 6 additions and 26 deletions
|
@ -24,9 +24,7 @@ jobs:
|
||||||
- name: Check availability
|
- name: Check availability
|
||||||
run: |
|
run: |
|
||||||
while [ "$(curl -o /dev/null -s -w '%{http_code}' http://website:8081)" -ne 200 ];
|
while [ "$(curl -o /dev/null -s -w '%{http_code}' http://website:8081)" -ne 200 ];
|
||||||
do
|
do echo "Waiting...";
|
||||||
status_code=$(curl -o /dev/null -s -w '%{http_code}' http://website:8081);
|
|
||||||
echo "Failed with ${status_code} ... Waiting for 5 seconds";
|
|
||||||
sleep 5;
|
sleep 5;
|
||||||
done;
|
done;
|
||||||
- name: Run unlighthouse
|
- name: Run unlighthouse
|
||||||
|
@ -40,11 +38,6 @@ jobs:
|
||||||
with:
|
with:
|
||||||
name: unlighthouse-reports
|
name: unlighthouse-reports
|
||||||
path: unlighthouse-reports/
|
path: unlighthouse-reports/
|
||||||
- name: Upload start-script
|
|
||||||
uses: actions/upload-artifact@v3
|
|
||||||
with:
|
|
||||||
name: start
|
|
||||||
path: start.sh
|
|
||||||
- name: Upload Dockerfile
|
- name: Upload Dockerfile
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v3
|
||||||
with:
|
with:
|
||||||
|
@ -60,10 +53,6 @@ jobs:
|
||||||
uses: actions/download-artifact@v3
|
uses: actions/download-artifact@v3
|
||||||
with:
|
with:
|
||||||
name: dockerfile
|
name: dockerfile
|
||||||
- name: Downloading start script
|
|
||||||
uses: actions/download-artifact@v3
|
|
||||||
with:
|
|
||||||
name: start
|
|
||||||
- name: Downloading static site artifacts
|
- name: Downloading static site artifacts
|
||||||
uses: actions/download-artifact@v3
|
uses: actions/download-artifact@v3
|
||||||
with:
|
with:
|
||||||
|
|
|
@ -16,8 +16,6 @@ WORKDIR /
|
||||||
|
|
||||||
COPY --from=build /app/dist /public
|
COPY --from=build /app/dist /public
|
||||||
COPY --from=build /app/serve.json /public/serve.json
|
COPY --from=build /app/serve.json /public/serve.json
|
||||||
COPY --from=build /app/start.sh /
|
|
||||||
RUN chmod +x start.sh
|
|
||||||
|
|
||||||
EXPOSE 8081
|
EXPOSE 8081
|
||||||
CMD ./start.sh
|
CMD echo "Website version ${version} - powered by @Firq"; serve --listen 8081 --no-clipboard /public
|
||||||
|
|
|
@ -5,8 +5,6 @@ ENV version=${version}
|
||||||
|
|
||||||
WORKDIR /
|
WORKDIR /
|
||||||
ADD reports /public
|
ADD reports /public
|
||||||
ADD start.sh /
|
|
||||||
RUN chmod +x /start.sh
|
|
||||||
|
|
||||||
EXPOSE 8081
|
EXPOSE 8081
|
||||||
CMD ./start.sh
|
CMD echo "Website version ${version} - powered by @Firq"; serve --listen 8081 --no-clipboard /public
|
||||||
|
|
4
package-lock.json
generated
4
package-lock.json
generated
|
@ -1,12 +1,12 @@
|
||||||
{
|
{
|
||||||
"name": "@firq/fgosite",
|
"name": "@firq/fgosite",
|
||||||
"version": "0.2.0-pre.101",
|
"version": "0.2.0-pre.102",
|
||||||
"lockfileVersion": 3,
|
"lockfileVersion": 3,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"packages": {
|
"packages": {
|
||||||
"": {
|
"": {
|
||||||
"name": "@firq/fgosite",
|
"name": "@firq/fgosite",
|
||||||
"version": "0.2.0-pre.101",
|
"version": "0.2.0-pre.102",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@astro-community/astro-embed-youtube": "^0.5.6",
|
"@astro-community/astro-embed-youtube": "^0.5.6",
|
||||||
"@astrojs/check": "^0.9.4",
|
"@astrojs/check": "^0.9.4",
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
{
|
{
|
||||||
"name": "@firq/fgosite",
|
"name": "@firq/fgosite",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"version": "0.2.0-pre.101",
|
"version": "0.2.0-pre.102",
|
||||||
"private": true,
|
"private": true,
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "astro dev",
|
"dev": "astro dev",
|
||||||
|
|
5
start.sh
5
start.sh
|
@ -1,5 +0,0 @@
|
||||||
#!/bin/sh
|
|
||||||
cd /
|
|
||||||
echo "Website version: ${version}"
|
|
||||||
echo "powered by @Firq"
|
|
||||||
serve --listen 8081 --no-clipboard /public
|
|
Loading…
Add table
Add a link
Reference in a new issue