diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml deleted file mode 100644 index 30d34ea..0000000 --- a/.gitea/workflows/ci.yml +++ /dev/null @@ -1,62 +0,0 @@ -name: Build and Deploy - -on: - push: - branches: [main] - -env: - REGISTRY: registry.rose-ash.com:5000 - IMAGE: l2-server - -jobs: - build-and-deploy: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - - - name: Install tools - run: | - apt-get update && apt-get install -y --no-install-recommends openssh-client - - - name: Set up SSH - env: - SSH_KEY: ${{ secrets.DEPLOY_SSH_KEY }} - DEPLOY_HOST: ${{ secrets.DEPLOY_HOST }} - run: | - mkdir -p ~/.ssh - echo "$SSH_KEY" > ~/.ssh/id_rsa - chmod 600 ~/.ssh/id_rsa - ssh-keyscan -H "$DEPLOY_HOST" >> ~/.ssh/known_hosts 2>/dev/null || true - - - name: Pull latest code on server - env: - DEPLOY_HOST: ${{ secrets.DEPLOY_HOST }} - run: | - ssh "root@$DEPLOY_HOST" " - cd /root/art-dag/activity-pub - git fetch origin main - git reset --hard origin/main - " - - - name: Build and push image - env: - DEPLOY_HOST: ${{ secrets.DEPLOY_HOST }} - run: | - ssh "root@$DEPLOY_HOST" " - cd /root/art-dag/activity-pub - docker build --build-arg CACHEBUST=\$(date +%s) -t ${{ env.REGISTRY }}/${{ env.IMAGE }}:latest -t ${{ env.REGISTRY }}/${{ env.IMAGE }}:${{ github.sha }} . - docker push ${{ env.REGISTRY }}/${{ env.IMAGE }}:latest - docker push ${{ env.REGISTRY }}/${{ env.IMAGE }}:${{ github.sha }} - " - - - name: Deploy stack - env: - DEPLOY_HOST: ${{ secrets.DEPLOY_HOST }} - run: | - ssh "root@$DEPLOY_HOST" " - cd /root/art-dag/activity-pub - docker stack deploy -c docker-compose.yml activitypub - echo 'Waiting for services to update...' - sleep 10 - docker stack services activitypub - " diff --git a/app/templates/activities/detail.html b/app/templates/activities/detail.html new file mode 100644 index 0000000..c484844 --- /dev/null +++ b/app/templates/activities/detail.html @@ -0,0 +1,63 @@ +{% extends "base.html" %} + +{% block title %}Activity {{ activity.activity_id[:16] }}{% endblock %} + +{% block content %} +
Activity ID
+{{ activity.activity_id }}
+Actor
+{{ activity.actor_id }}
+Published
+{{ activity.published }}
+Anchor Root
+{{ activity.anchor_root }}
+Object Data
+{{ activity.object_data | tojson(indent=2) }}
+ Signature
+{{ activity.signature | tojson(indent=2) }}
+ Merkle Root
+{{ anchor.merkle_root }}
+Activity Count
+{{ anchor.activity_count }}
+Created
+{{ anchor.created_at }}
+Bitcoin Transaction
+ + {{ anchor.bitcoin_txid }} + +Confirmed At
+{{ anchor.confirmed_at }}
+Merkle Tree IPFS CID
+ + {{ anchor.tree_ipfs_cid }} + +OpenTimestamps Proof CID
+ + {{ anchor.ots_proof_cid }} + +by {{ asset.owner }}
+{{ asset.description }}
+ {% endif %} + + {% if asset.tags %} +Content Hash
+{{ asset.content_hash }}
+IPFS CID
+ + {{ asset.ipfs_cid }} + +@{{ profile.username }}
+ {% if profile.bio %} +{{ profile.bio }}
+ {% endif %} +{{ asset.name }}
+ + {% endfor %} +No assets yet.
+ {% endif %} +