Docker build update #8 (nevermind not finanl)

This commit is contained in:
LukeGus
2024-12-07 01:49:32 -06:00
parent 0f764dfb98
commit bc49d646b3
3 changed files with 27 additions and 12 deletions

View File

@@ -1,4 +1,5 @@
name: Build and Push Docker Image name: Build and Push Docker Image
on: on:
push: push:
branches: branches:
@@ -22,10 +23,18 @@ jobs:
with: with:
node-version: '18' node-version: '18'
- name: Cache Node Modules
uses: actions/cache@v3
with:
path: frontend/node_modules
key: ${{ runner.os }}-node-modules-${{ hashFiles('frontend/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-modules-
- name: Install Dependencies and Build Frontend - name: Install Dependencies and Build Frontend
run: | run: |
cd frontend cd frontend
npm install npm ci
npm run build npm run build
- name: Setup Docker Buildx - name: Setup Docker Buildx
@@ -45,10 +54,8 @@ jobs:
run: | run: |
echo "REPO_OWNER=$(echo ${{ github.repository_owner }} | tr '[:upper:]' '[:lower:]')" >> $GITHUB_ENV echo "REPO_OWNER=$(echo ${{ github.repository_owner }} | tr '[:upper:]' '[:lower:]')" >> $GITHUB_ENV
if [ "${{ github.event.inputs.tag_name }}" == "" ]; then if [ "${{ github.event.inputs.tag_name }}" == "" ]; then
# If the tag_name input is an empty string, default to branch-name-development-latest
IMAGE_TAG="${{ github.ref_name }}-development-latest" IMAGE_TAG="${{ github.ref_name }}-development-latest"
else else
# If tag_name is provided, use it
IMAGE_TAG="${{ github.event.inputs.tag_name }}" IMAGE_TAG="${{ github.event.inputs.tag_name }}"
fi fi
echo "IMAGE_TAG=$IMAGE_TAG" >> $GITHUB_ENV echo "IMAGE_TAG=$IMAGE_TAG" >> $GITHUB_ENV
@@ -61,8 +68,8 @@ jobs:
push: true push: true
tags: ghcr.io/${{ env.REPO_OWNER }}/ssh-project:${{ env.IMAGE_TAG }} tags: ghcr.io/${{ env.REPO_OWNER }}/ssh-project:${{ env.IMAGE_TAG }}
labels: org.opencontainers.image.source=https://github.com/${{ github.repository }} labels: org.opencontainers.image.source=https://github.com/${{ github.repository }}
cache-from: type=gha cache-from: type=gha,ref=ghcr.io/${{ env.REPO_OWNER }}/ssh-project:cache
cache-to: type=gha,mode=max cache-to: type=gha,mode=max,ref=ghcr.io/${{ env.REPO_OWNER }}/ssh-project:cache
- name: Notify via ntfy - name: Notify via ntfy
run: | run: |

19
.idea/workspace.xml generated
View File

@@ -4,9 +4,9 @@
<option name="autoReloadType" value="SELECTIVE" /> <option name="autoReloadType" value="SELECTIVE" />
</component> </component>
<component name="ChangeListManager"> <component name="ChangeListManager">
<list default="true" id="8497df64-d86b-4c98-ac58-c157d9d3fb1e" name="Changes" comment="Docker build update #6 (cache and cleanup)"> <list default="true" id="8497df64-d86b-4c98-ac58-c157d9d3fb1e" name="Changes" comment="Docker build update #7 (final)">
<change beforePath="$PROJECT_DIR$/.github/workflows/docker-image.yml" beforeDir="false" afterPath="$PROJECT_DIR$/.github/workflows/docker-image.yml" afterDir="false" />
<change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" /> <change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
<change beforePath="$PROJECT_DIR$/info.txt" beforeDir="false" afterPath="$PROJECT_DIR$/info.txt" afterDir="false" />
</list> </list>
<option name="SHOW_DIALOG" value="false" /> <option name="SHOW_DIALOG" value="false" />
<option name="HIGHLIGHT_CONFLICTS" value="true" /> <option name="HIGHLIGHT_CONFLICTS" value="true" />
@@ -115,7 +115,7 @@
<updated>1733439468142</updated> <updated>1733439468142</updated>
<workItem from="1733439479708" duration="5489000" /> <workItem from="1733439479708" duration="5489000" />
<workItem from="1733448523969" duration="3535000" /> <workItem from="1733448523969" duration="3535000" />
<workItem from="1733549186397" duration="7223000" /> <workItem from="1733549186397" duration="7339000" />
</task> </task>
<task id="LOCAL-00001" summary="Nano zoom fix #11"> <task id="LOCAL-00001" summary="Nano zoom fix #11">
<option name="closed" value="true" /> <option name="closed" value="true" />
@@ -277,7 +277,15 @@
<option name="project" value="LOCAL" /> <option name="project" value="LOCAL" />
<updated>1733557337662</updated> <updated>1733557337662</updated>
</task> </task>
<option name="localTasksCounter" value="21" /> <task id="LOCAL-00021" summary="Docker build update #7 (final)">
<option name="closed" value="true" />
<created>1733557558085</created>
<option name="number" value="00021" />
<option name="presentableId" value="LOCAL-00021" />
<option name="project" value="LOCAL" />
<updated>1733557558085</updated>
</task>
<option name="localTasksCounter" value="22" />
<servers /> <servers />
</component> </component>
<component name="TypeScriptGeneratedFilesManager"> <component name="TypeScriptGeneratedFilesManager">
@@ -322,6 +330,7 @@
<MESSAGE value="Docker build update #4 (cache and cleanup)" /> <MESSAGE value="Docker build update #4 (cache and cleanup)" />
<MESSAGE value="Docker build update #5 (cache and cleanup)" /> <MESSAGE value="Docker build update #5 (cache and cleanup)" />
<MESSAGE value="Docker build update #6 (cache and cleanup)" /> <MESSAGE value="Docker build update #6 (cache and cleanup)" />
<option name="LAST_COMMIT_MESSAGE" value="Docker build update #6 (cache and cleanup)" /> <MESSAGE value="Docker build update #7 (final)" />
<option name="LAST_COMMIT_MESSAGE" value="Docker build update #7 (final)" />
</component> </component>
</project> </project>

View File

@@ -1,7 +1,6 @@
Currently: Currently:
make the cmds run at start not show up make the cmds run at start not show up
see if it auto resizes the terminal via cmds after the browser window size has changed or +/- clicked (does not) auto resize the terminal via cmds after the browser window size has changed or +/- clicked
before release, call this version 1.0 (don't do beta and shit/come uip with naming scheme like 1.1 or just increment by 1 and when to go to next version)
Overall Features: Overall Features:
SSH/RDP(?)/VNC(?) SSH/RDP(?)/VNC(?)