Upgrade Serverless Functions (Optional)
caution
We do not recommend upgrading your container directly from CI in production. This approach hands over control to automation, which may not be suitable for critical environments. Prefer a change workflow and executing the upgrade with your CLI or in the Console UI.
Configuration
To configure an action to upgrade your Satellite container, follow these steps:
- Create an
upgrade.yml
file in the.github/workflows
subfolder of your repository. - Paste the following code into the file:
upgrade.yml
name: Upgrade Satellite Container
on:
workflow_dispatch:
jobs:
upgrade:
runs-on: ubuntu-latest
steps:
- name: Check out the repo
uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 22
registry-url: "https://registry.npmjs.org"
- name: Install Dependencies
run: npm ci
- name: Build
uses: junobuild/juno-action@main
with:
args: functions build
- name: Upgrade
uses: junobuild/juno-action@main
with:
args: functions upgrade
env:
JUNO_TOKEN: ${{ secrets.JUNO_TOKEN }}