Skip to content

Commit

Permalink
chore: update ci.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
JivusAyrus committed Sep 2, 2024
1 parent f9e27d8 commit 3bb8c17
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,7 @@ jobs:
- run: |
echo "${{ steps.ff.outputs.feature_subgraphs_to_deploy }}"
- name: Setup Flyctl
run: curl -L https://fly.io/install.sh | sh
- uses: superfly/flyctl-actions/setup-flyctl@master

- name: Deploy apps to Fly.io
env:
Expand Down Expand Up @@ -86,8 +85,7 @@ jobs:
echo "${{ steps.ff.outputs.feature_subgraphs_to_deploy }}"
echo "${{ steps.ff.outputs.feature_subgraphs_to_destroy }}"
- name: Setup Flyctl
run: curl -L https://fly.io/install.sh | sh
- uses: superfly/flyctl-actions/setup-flyctl@master

- name: Deploy or update apps on Fly.io
env:
Expand All @@ -105,7 +103,7 @@ jobs:
fi
done
echo '${{ steps.ff.outputs.feature_subgraphs_to_deploy }}' | jq -c '.[]' | while read -r subgraph; do
echo '${{ steps.ff.outputs.feature_subgraphs_to_destroy }}' | jq -c '.[]' | while read -r subgraph; do
name=$(echo "$subgraph" | jq -r '.featureSubgraphName')
flyctl apps destroy $name --yes
done
Expand Down Expand Up @@ -141,14 +139,13 @@ jobs:
- run: |
echo "${{ steps.ff.outputs.feature_subgraphs_to_destroy }}"
- name: Setup Flyctl
run: curl -L https://fly.io/install.sh | sh
- uses: superfly/flyctl-actions/setup-flyctl@master

- name: Destroy apps on Fly.io
env:
FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }}
run: |
echo '${{ steps.ff.outputs.feature_subgraphs_to_deploy }}' | jq -c '.[]' | while read -r subgraph; do
echo '${{ steps.ff.outputs.feature_subgraphs_to_destroy }}' | jq -c '.[]' | while read -r subgraph; do
name=$(echo "$subgraph" | jq -r '.featureSubgraphName')
flyctl apps destroy $name --yes
done

0 comments on commit 3bb8c17

Please sign in to comment.