Skip to content

Commit

Permalink
move creation of environment vars
Browse files Browse the repository at this point in the history
  • Loading branch information
Unischneider committed Nov 3, 2024
1 parent f6aec70 commit 8d1a114
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,17 @@ jobs:
- name: Checkout code
uses: actions/checkout@v4

- name: Create Environment File
env:
ANGULAR_APP_API_KEY: ${{ secrets.ANGELOS_APP_API_KEY }}
run: |
echo "export const environment = {
production: true,
angelosUrl: '/api/v1/question/chat',
angelosToken: '/api/token',
angelosAppApiKey: '${ANGELOS_APP_API_KEY}'
};" > src/environments/environment.prod.ts
- name: Set up QEMU
uses: docker/setup-qemu-action@v3

Expand Down Expand Up @@ -57,17 +68,6 @@ jobs:
source: "./docker-compose.yml"
target: /home/${{ vars.VM_USERNAME }}/${{ github.repository }}

- name: Create Environment File
env:
ANGULAR_APP_API_KEY: ${{ secrets.ANGELOS_APP_API_KEY }}
run: |
echo "export const environment = {
production: true,
angelosUrl: '/api/v1/question/chat',
angelosToken: '/api/token',
angelosAppApiKey: '${ANGELOS_APP_API_KEY}'
};" > src/environments/environment.prod.ts
- name: SSH to VM and Execute Docker-Compose Up
uses: appleboy/[email protected]
with:
Expand Down

0 comments on commit 8d1a114

Please sign in to comment.