Skip to content

Commit

Permalink
Fix domain
Browse files Browse the repository at this point in the history
Signed-off-by: Juan Cruz Viotti <[email protected]>
  • Loading branch information
jviotti committed Aug 6, 2024
1 parent 5972019 commit d0e4675
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
KRAFTCLOUD_METRO: was1
KRAFTKIT_VERSION: 0.9.1
KRAFTKIT_NO_CHECK_UPDATES: true
SERVICE_URL: https://schemas.intelligence.ai
SERVICE_DOMAIN: schemas.intelligence.ai
steps:
- uses: docker/login-action@65b78e6e13532edd9afa3aa52ac7964289d1a9c1
with:
Expand All @@ -34,7 +34,7 @@ jobs:
id: deploy-github
with:
token: '${{ github.token }}'
environment-url: ${{ env.SERVICE_URL }}
environment-url: https://${{ env.SERVICE_DOMAIN }}
environment: production

- id: deploy
Expand All @@ -47,11 +47,11 @@ jobs:
run: |
set -o errexit
set -o nounset
kraft cloud service create --name schemas --domain ${{ env.SERVICE_URL }} 443:8000 || true
kraft cloud service create --name schemas --domain ${{ env.SERVICE_DOMAIN }} 443:8000 || true
kraft cloud deploy --memory 64 --rollout remove --image schemas --service schemas --kraftfile Kraftfile --restart on-failure --replicas 8 --no-prompt
kraft cloud service get schemas
kraft cloud instance logs "$(kraft cloud service get schemas --output json | jq --raw-output '.[0].instances | split(" ") | .[0]')"
curl --location --fail ${{ env.SERVICE_URL }}
curl --location --fail https://${{ env.SERVICE_DOMAIN }}
env:
KRAFTCLOUD_TOKEN: ${{ secrets.KRAFTCLOUD_TOKEN }}

Expand Down

0 comments on commit d0e4675

Please sign in to comment.