Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
jeanbapt committed Nov 20, 2024
1 parent 1c41810 commit bdabef3
Showing 1 changed file with 18 additions and 11 deletions.
29 changes: 18 additions & 11 deletions .github/workflows/koyeb-deploy.yml
Original file line number Diff line number Diff line change
@@ -1,35 +1,42 @@
name: Deploy to Koyeb
name: Deploy to Koyeb Staging

on:
push:
branches:
- main

env:
KOYEB_APP_NAME: duckdb-spawn
KOYEB_SERVICE_NAME: api
- main # Or your staging branch

jobs:
deploy:
runs-on: ubuntu-latest

steps:
# Step 1: Checkout the code
- name: Checkout code
uses: actions/checkout@v3

# Step 2: Install the Koyeb CLI
- name: Install Koyeb CLI
run: |
curl -sSL https://get.koyeb.com | bash
echo 'Adding Koyeb CLI to PATH'
echo "$HOME/.koyeb/bin" >> $GITHUB_PATH
echo "Adding Koyeb CLI to PATH"
echo "PATH=$HOME/.koyeb/bin:$PATH" >> $GITHUB_ENV
- name: Verify Koyeb CLI Installation
run: koyeb --version
# Step 3: Source Updated PATH
- name: Update PATH
run: |
source $GITHUB_ENV
echo "PATH after update: $PATH"
ls -l $HOME/.koyeb/bin
koyeb --version # Verify installation
# Step 4: Authenticate with Koyeb
- name: Authenticate with Koyeb
env:
KOYEB_API_TOKEN: ${{ secrets.KOYEB_API_TOKEN }}
run: koyeb login --api-token $KOYEB_API_TOKEN
run: |
koyeb login --api-token $KOYEB_API_TOKEN
# Step 5: Deploy to Koyeb
- name: Deploy to Koyeb
env:
KOYEB_API_TOKEN: ${{ secrets.KOYEB_API_TOKEN }}
Expand Down

0 comments on commit bdabef3

Please sign in to comment.