Skip to content

Add shex mime type

Add shex mime type #6

name: Publish Docker image
on:
# Trigger the workflow every time you push to the `master` branch
push:
branches: [master]
# Allows you to run this workflow manually from the Actions tab on GitHub.
workflow_dispatch:
jobs:
push_to_registry:
name: Push Docker image to Docker Hub
runs-on: ubuntu-latest
permissions:
packages: write
contents: read
attestations: write
id-token: write
steps:
- name: Check out the repo
uses: actions/checkout@v4
- name: Log in to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Set up Docker BuildX
uses: docker/setup-buildx-action@v3
- name: Build and push Docker image
id: push
uses: docker/build-push-action@v6
with:
context: .
file: ./Dockerfile
platforms: linux/amd64,linux/arm64
push: true
tags: activitypods/shapes:latest
- name: Deploy to shapes.activitypods.org
uses: appleboy/ssh-action@v1.0.3
with:
host: shapes.activitypods.org
username: ${{ secrets.USERNAME }}
key: ${{ secrets.PRIVATE_KEY }}
port: 22
script: |
cd apps
docker system prune --force
docker compose pull activitypods-shapes
docker compose up -d activitypods-shapes