CI
Some checks failed
CI / Check links (push) Successful in 8s
CI / Check typos (push) Successful in 9s
CI / Clippy (push) Failing after 51s
CI / Build and test (push) Successful in 2m0s
CI / Build container (push) Has been skipped
CI / Deploy on waypoint (push) Has been skipped

This commit is contained in:
2025-11-04 14:44:11 -08:00
parent dc4a1def5f
commit 62a3da195f
2 changed files with 29 additions and 20 deletions

View File

@@ -166,23 +166,32 @@ jobs:
labels: ${{ steps.meta.outputs.labels }} labels: ${{ steps.meta.outputs.labels }}
# Tags looks like ghcr.io/user/app:latest # Tags looks like ghcr.io/user/app:latest
# - name: Setup SSH deploy:
# if: ${{ (github.event_name == 'push' && github.ref == 'refs/heads/main') || github.event_name == 'workflow_dispatch' }} name: "Deploy on waypoint"
# run: | runs-on: ubuntu-latest
# mkdir -p ~/.ssh # Only run on push to main or workflow_dispatch
# echo "${{ secrets.DEPLOY_SSH_PRIV_KEY }}" > ~/.ssh/id_ed25519 if: github.event_name == 'push' && github.ref == 'refs/heads/main' || github.event_name == 'workflow_dispatch'
# chmod 600 ~/.ssh/id_ed25519 needs:
# eval "$(ssh-agent -s)" - docker
# ssh-add ~/.ssh/id_ed25519
# ssh-keyscan -p 5342 waypoint.betalupi.com >> ~/.ssh/known_hosts
# - name: Deploy steps:
# if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }} - name: Setup SSH
# run: | if: ${{ (github.event_name == 'push' && github.ref == 'refs/heads/main') || github.event_name == 'workflow_dispatch' }}
# cat "site.tar.gz" | \ run: |
# ssh mark@waypoint.betalupi.com -p 5342 \ mkdir -p ~/.ssh
# " echo "${{ secrets.DEPLOY_SSH_PRIV_KEY }}" > ~/.ssh/id_ed25519
# cat > /home/mark/site.tar.gz; \ chmod 600 ~/.ssh/id_ed25519
# rm -dfr /var/www/site/public; \ eval "$(ssh-agent -s)"
# tar -xf site.tar.gz --directory=/var/www/site; ssh-add ~/.ssh/id_ed25519
# " ssh-keyscan -p 5342 waypoint.betalupi.com >> ~/.ssh/known_hosts
- name: Deploy
if: ${{ (github.event_name == 'push' && github.ref == 'refs/heads/main') || github.event_name == 'workflow_dispatch' }}
run: |
ssh mark@waypoint.betalupi.com -p 5342 \
"
cd /home/mark/docker/betalupi-webpage; \
docker compose down; \
docker image prune -af; \
docker compose up -d;
"

View File

@@ -34,4 +34,4 @@ COPY --from=build \
ENV PATH="/app/bin:$PATH" ENV PATH="/app/bin:$PATH"
ENV RUST_BACKTRACE=full ENV RUST_BACKTRACE=full
ENTRYPOINT ["webpage", "--help"] ENTRYPOINT [""]