diff --git a/.forgejo/workflows/ci.yaml b/.forgejo/workflows/ci.yaml index 2326a11..34815a2 100644 --- a/.forgejo/workflows/ci.yaml +++ b/.forgejo/workflows/ci.yaml @@ -14,9 +14,13 @@ jobs: lint: runs-on: docker container: - image: python:3.12-slim + image: catthehacker/ubuntu:act-latest steps: - uses: actions/checkout@v4 + - name: Set up Python + uses: actions/setup-python@v5 + with: + python-version: '3.12' - name: Install dependencies run: | python -m pip install --upgrade pip @@ -29,9 +33,13 @@ jobs: test: runs-on: docker container: - image: python:3.12-slim + image: catthehacker/ubuntu:act-latest steps: - uses: actions/checkout@v4 + - name: Set up Python + uses: actions/setup-python@v5 + with: + python-version: '3.12' - name: Install dependencies run: | python -m pip install --upgrade pip @@ -42,9 +50,13 @@ jobs: type-check: runs-on: docker container: - image: python:3.12-slim + image: catthehacker/ubuntu:act-latest steps: - uses: actions/checkout@v4 + - name: Set up Python + uses: actions/setup-python@v5 + with: + python-version: '3.12' - name: Install dependencies run: | python -m pip install --upgrade pip diff --git a/.forgejo/workflows/deploy.yaml b/.forgejo/workflows/deploy.yaml index b0577ba..e6bdcb5 100644 --- a/.forgejo/workflows/deploy.yaml +++ b/.forgejo/workflows/deploy.yaml @@ -13,9 +13,13 @@ jobs: lint: runs-on: docker container: - image: python:3.12-slim + image: catthehacker/ubuntu:act-latest steps: - uses: actions/checkout@v4 + - name: Set up Python + uses: actions/setup-python@v5 + with: + python-version: '3.12' - name: Install dependencies run: | python -m pip install --upgrade pip @@ -28,9 +32,13 @@ jobs: test: runs-on: docker container: - image: python:3.12-slim + image: catthehacker/ubuntu:act-latest steps: - uses: actions/checkout@v4 + - name: Set up Python + uses: actions/setup-python@v5 + with: + python-version: '3.12' - name: Install dependencies run: | python -m pip install --upgrade pip @@ -41,9 +49,13 @@ jobs: type-check: runs-on: docker container: - image: python:3.12-slim + image: catthehacker/ubuntu:act-latest steps: - uses: actions/checkout@v4 + - name: Set up Python + uses: actions/setup-python@v5 + with: + python-version: '3.12' - name: Install dependencies run: | python -m pip install --upgrade pip @@ -85,7 +97,7 @@ jobs: needs: build if: github.ref == 'refs/heads/main' container: - image: python:3.12-alpine + image: catthehacker/ubuntu:act-latest env: DEPLOY_HOST: ${{ secrets.DEPLOY_HOST }} DEPLOY_USER: ${{ secrets.DEPLOY_USER || 'deploy' }} @@ -101,7 +113,7 @@ jobs: - name: Install dependencies run: | - apk add --no-cache bash openssh-client curl docker-cli docker-cli-compose + apt-get update && apt-get install -y bash openssh-client curl docker.io docker-compose mkdir -p ~/.ssh chmod 700 ~/.ssh