Setting up gitea actions docker + vue3 app

Hi,
I’m trying to setup an action runner to rebuild a vue3 project (using docker compose) every time there is a push to the repository, and I want to create the runner also using docker compose. Right now I have the config.yaml file in .gitea/workflow/config.yaml inside the vue3 project root directory and this is the content:

name: rebuild
on:
  push:
    branches:
      - main
jobs:
  rebuild:
    runs-on: self-hosted

    steps:
      - name: Checkout code
        uses: actions/checkout@v2
      - name: Rebuild Docker Compose
        run: |
          git pull
          docker compose down
          docker compose up -d --build

I’m able to run the container using the following compose file:

services:
  runner:
    container_name: act_runner
    image: gitea/act_runner:latest
    environment:
      CONFIG_FILE: /config.yaml
      GITEA_INSTANCE_URL: http://gitea:3000
      GITEA_RUNNER_REGISTRATION_TOKEN: #################
      GITEA_RUNNER_NAME: n3app_runner
    volumes:
      - ./config.yaml:/config.yaml
      - ./data:/data
      - /var/run/docker.sock:/var/run/docker.sock
    networks:
      - gitea_network
networks:
  gitea_network:
    external: true

But whenever I push something, it doesn’t run the action. I’m very new to git actions and I’m not quite sure how to have the runner access the project folder to run the commands inside the vue3 project folder.

“runs-on: self-hosted” is probably the reason, try with “ubuntu-latest” instead.

Runner only executes jobs matching “runs-on” with labels defined in the “config.yaml” file.
If you need to use a custom image to run the job, define its label and full name in “config.yaml”.