upd #12
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Deploy to Koyeb | |
on: | |
push: | |
branches: | |
- main | |
env: | |
KOYEB_APP_NAME: duckdb-spawn | |
KOYEB_SERVICE_NAME: api | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- name: Install Koyeb CLI | |
run: | | |
curl -sSL https://get.koyeb.com | bash | |
echo 'Adding Koyeb CLI to PATH' | |
echo "$HOME/.koyeb/bin" >> $GITHUB_PATH | |
- name: Verify Koyeb CLI Installation | |
run: koyeb --version | |
# Step 3: Authenticate with Koyeb | |
- name: Authenticate with Koyeb | |
env: | |
KOYEB_API_TOKEN: ${{ secrets.KOYEB_API_TOKEN }} | |
run: | | |
source $GITHUB_ENV | |
koyeb login --api-token $KOYEB_API_TOKEN | |
# Step 4: Deploy to Koyeb | |
- name: Deploy to Koyeb | |
env: | |
KOYEB_API_TOKEN: ${{ secrets.KOYEB_API_TOKEN }} | |
run: | | |
source $GITHUB_ENV | |
koyeb apps list |