Skip to content

CI/CD: cache devbox install to speed up deployment #227

@prestoncabe

Description

@prestoncabe

Right now, every deploy of the app/api requires an install of the devbox setup, which can take several minutes to complete. In order to speed up deployment and make it more practical run tests during deployment, we'd like to cache the devbox setup somehow.

The place to start is by troubleshooting the built-in enable-cache option on the devbox Github Action:

      # Setup devbox which includes all our dependencies: Maven, JDK 21, Quarkus, etc.
      - name: 'Install devbox'
        uses: 'jetify-com/[email protected]'
        with:
          enable-cache: true

Does this always not work?
Would it work with some sort of configuration change?

One alternative option would be to use Docker to cache (the image would only be rebuilt with a change to the devbox-related files)

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

Status

Backlog

Relationships

None yet

Development

No branches or pull requests

Issue actions