Skip to content

init not working as expected with pre-build #4838

Closed
@jmcelreavey

Description

@jmcelreavey

Bug description

I currently have the following logic in place:

tasks:
  - before: |
      printf "\n[settings]\napi_key = $WAKA_TIME_API_KEY\n" > ~/.wakatime.cfg
    prebuild: |
      docker-compose up -d
      yarn install
      yarn run database:migrate
    command: |
      docker-compose down
      docker network prune -f
      yarn run dev

This works perfectly, however, the documentation is telling me prebuild has been deprecated and I should replace it with init however when I do this it doesn't rebuild the init step, it runs during startup.

Steps to reproduce

Gitpod up the repository:
https://gitpod.io/#https://github.com/jmcelreavey/dev-job

Expected behavior

I would expect the GitHub pre-build functionality to see the init and run it prior to me starting the workspace

Example repository

https://github.com/jmcelreavey/dev-job

Anything else?

No response

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions