Skip to content

Commit

Permalink
next deploy try
Browse files Browse the repository at this point in the history
  • Loading branch information
ninori9 committed Jan 31, 2025
1 parent 22000e4 commit d0d6d39
Showing 1 changed file with 15 additions and 10 deletions.
25 changes: 15 additions & 10 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,19 @@ jobs:
- name: Checkout code
uses: actions/checkout@v4

# 1) Build for Org 2
- name: Set up QEMU
uses: docker/setup-qemu-action@v3

- name: Log in to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

- name: Create Environment File (Org 2)
run: |
echo "export const environment = {
Expand All @@ -23,9 +35,6 @@ jobs:
filterByOrg: true
};" > src/environments/environment.prod.ts
- name: Verify Environment File (Org 2)
run: test -f src/environments/environment.prod.ts || (echo "Environment file creation failed for org2." && exit 1)

- name: Build & Push (Org 2)
uses: docker/build-push-action@v6
with:
Expand All @@ -37,8 +46,7 @@ jobs:
tags: ghcr.io/ls1intum/angelos-ui:latest
push: true
no-cache: true

# 2) Build for Org 5

- name: Create Environment File (Org 5)
run: |
echo "export const environment = {
Expand All @@ -47,10 +55,7 @@ jobs:
angelosAppApiKey: '${{secrets.ANGELOS_APP_API_KEY}}',
organisation: 5,
filterByOrg: true
};" > src/environments/environment.prod.ts
- name: Verify Environment File (Org 5)
run: test -f src/environments/environment.prod.ts || (echo "Environment file creation failed for org5." && exit 1)
};" > src/environments/environment.prod.heilbronn.ts
- name: Build & Push (Org 5)
uses: docker/build-push-action@v6
Expand Down

0 comments on commit d0d6d39

Please sign in to comment.