adding steps to authenticate with Dockerhub to pipeline
Skyweave Test, Lint, and Deploy Ritual / Test and Lint Code (push) Failing after 2m34s
Skyweave Test, Lint, and Deploy Ritual / Deploy to Roof Unit (push) Has been skipped

This commit is contained in:
wes
2025-06-16 21:57:51 -04:00
parent 86fbca4924
commit 8de5dfd306
+43 -28
View File
@@ -1,4 +1,4 @@
name: Skyweave Test & Lint Ritual name: Skyweave Test, Lint, and Deploy Ritual
on: on:
push: push:
@@ -9,35 +9,45 @@ on:
jobs: jobs:
test-and-lint: test-and-lint:
name: Test and Lint Code name: Test and Lint Code
runs-on: ubuntu-latest # This key was missing from your linting job runs-on: ubuntu-latest # CORRECTED: This key was missing.
# We use a single, public image that has Node.js for the checkout action
container:
image: node:lts-alpine
steps: steps:
- name: 1. Checkout Repository Code - name: 1. Authenticate to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: 2. Checkout Repository Code
uses: actions/checkout@v4 uses: actions/checkout@v4
- name: 2. Install Lua Dependencies - name: 3. Install Lua Dependencies in Alpine
run: | # We must run this step inside the target container
echo "Sanctifying container with Lua tools..." uses: add-and-commit/docker-run-action@v3
# Installs luacheck for linting, and Lua + Luarocks for Busted with:
apk add --no-cache luacheck lua5.1-dev build-base git luarocks image: node:lts-alpine
luarocks-5.1 install busted # The shell command is now run within the node:lts-alpine container
cp lib/json.lua skyweave/ run: |
echo "Sanctifying container with Lua tools..."
apk add --no-cache luacheck lua5.1-dev build-base git luarocks
luarocks-5.1 install busted
cp lib/json.lua skyweave/
- name: 3. Run Luacheck Scrutiny - name: 4. Run Luacheck Scrutiny in Alpine
run: | uses: add-and-commit/docker-run-action@v3
echo "Scanning Lua scripture..." with:
# With your perfected .luacheckrc, this single command handles all files image: node:lts-alpine
luacheck --std lua51 . run: |
echo "Scanning Lua scripture..."
luacheck --std lua51 .
- name: 4. Perform Unit Inquisition (Busted) - name: 5. Perform Unit Inquisition (Busted) in Alpine
run: | uses: add-and-commit/docker-run-action@v3
echo "Initiating unit tests..." with:
# Busted will automatically find and run files in the 'spec/' directory image: node:lts-alpine
busted --lua=lua5.1 --verbose spec/ run: |
echo "Initiating unit tests..."
busted --lua=lua5.1 --verbose spec/
deploy-to-device: deploy-to-device:
name: Deploy to Roof Unit name: Deploy to Roof Unit
@@ -46,10 +56,16 @@ jobs:
if: github.event_name == 'push' && github.ref == 'refs/heads/master' if: github.event_name == 'push' && github.ref == 'refs/heads/master'
steps: steps:
- name: 1. Checkout Repository Code - name: 1. Authenticate to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: 2. Checkout Repository Code
uses: actions/checkout@v4 uses: actions/checkout@v4
- name: 2. Prepare SSH Environment - name: 3. Prepare SSH Environment
run: | run: |
echo "Preparing the sacred keys and crypto-litany for SSH communion..." echo "Preparing the sacred keys and crypto-litany for SSH communion..."
mkdir -p ~/.ssh/ mkdir -p ~/.ssh/
@@ -58,7 +74,6 @@ jobs:
ssh-keyscan -H "${{ secrets.ROOF_UNIT_HOSTNAME }}" >> ~/.ssh/known_hosts ssh-keyscan -H "${{ secrets.ROOF_UNIT_HOSTNAME }}" >> ~/.ssh/known_hosts
# Recreate the SSH alias, now including the required legacy crypto options
echo "Host roof-unit" > ~/.ssh/config echo "Host roof-unit" > ~/.ssh/config
echo " HostName ${{ secrets.ROOF_UNIT_HOSTNAME }}" >> ~/.ssh/config echo " HostName ${{ secrets.ROOF_UNIT_HOSTNAME }}" >> ~/.ssh/config
echo " User ${{ secrets.ROOF_UNIT_USER }}" >> ~/.ssh/config echo " User ${{ secrets.ROOF_UNIT_USER }}" >> ~/.ssh/config
@@ -68,7 +83,7 @@ jobs:
echo " MACs +hmac-sha1" >> ~/.ssh/config echo " MACs +hmac-sha1" >> ~/.ssh/config
echo " PubkeyAcceptedAlgorithms +ssh-rsa" >> ~/.ssh/config echo " PubkeyAcceptedAlgorithms +ssh-rsa" >> ~/.ssh/config
- name: 3. Execute Deployment Ritual - name: 4. Execute Deployment Ritual
run: | run: |
echo "Initiating deployment sequence..." echo "Initiating deployment sequence..."
chmod +x ./skyweave_deploy.sh chmod +x ./skyweave_deploy.sh