Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ jobs:
contents: read
packages: write
env:
IMAGE_NAME: ghcr.io/${{ toLower(github.repository) }}
IMAGE_NAME: ghcr.io/${{ github.repository }}
steps:
- uses: actions/checkout@v4
- uses: docker/setup-buildx-action@v3
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@ jobs:
runs-on: ubuntu-latest
env:
DEPLOY_PATH: ${{ secrets.VPS_DEPLOY_PATH || '/opt/autocoder' }}
TARGET_BRANCH: ${{ secrets.VPS_BRANCH || 'master' }}
TARGET_BRANCH: ${{ secrets.VPS_BRANCH || 'main' }}
VPS_PORT: ${{ secrets.VPS_PORT || '22' }}
IMAGE_LATEST: ghcr.io/${{ toLower(github.repository) }}:latest
IMAGE_SHA: ghcr.io/${{ toLower(github.repository) }}:${{ github.event.workflow_run.head_sha }}
IMAGE_LATEST: ghcr.io/${{ github.repository }}:latest
IMAGE_SHA: ghcr.io/${{ github.repository }}:${{ github.event.workflow_run.head_sha }}
steps:
- name: Deploy over SSH with Docker Compose
uses: appleboy/ssh-action@v1.2.4
Expand Down
14 changes: 14 additions & 0 deletions .github/workflows/pr-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,20 @@ concurrency:
cancel-in-progress: true

jobs:
repo-guards:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Ensure .code is not tracked
shell: bash
run: |
tracked="$(git ls-files -- .code)"
if [ -n "$tracked" ]; then
echo "The .code/ directory must not be tracked."
echo "$tracked"
exit 1
fi

python:
runs-on: ubuntu-latest
steps:
Expand Down
Loading