Skip to content

Commit

Permalink
ci(actions): 👷 And again...
Browse files Browse the repository at this point in the history
  • Loading branch information
Nudelsuppe42 committed Sep 8, 2024
1 parent 65686f8 commit 96e9f62
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 12 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/api.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ jobs:
run: |
echo "${{ github.token }}" | docker login https://ghcr.io -u ${GITHUB_ACTOR} --password-stdin
- name: Build the Docker image
run: docker build . --file Dockerfile --tag ghcr.io/buildtheearth/website-node-backend:$(git rev-parse --short HEAD) --tag ghcr.io/buildtheearth/website-node-backend:latest
run: docker build . --file apps/api/Dockerfile --tag ghcr.io/buildtheearth/website-node-backend:$(git rev-parse --short HEAD) --tag ghcr.io/buildtheearth/website-node-backend:latest
- name: Docker push tag
run: docker push ghcr.io/buildtheearth/website-node-backend:$(git rev-parse --short HEAD)
- name: Docker push latest
Expand Down
18 changes: 9 additions & 9 deletions .github/workflows/frontend.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,17 +33,17 @@ jobs:
echo "${{ github.token }}" | docker login https://ghcr.io -u ${GITHUB_ACTOR} --password-stdin
- name: Create env file
run: |
touch build.env.local
echo KEYCLOAK_URL="https://auth.buildtheearth.net/realms/website" >> build.env.local
touch apps/frontend/build.env.local
echo KEYCLOAK_URL="https://auth.buildtheearth.net/realms/website" >> apps/frontend/build.env.local
echo KEYCLOAK_ID="frontend" >> build.env.local
echo KEYCLOAK_SECRET="${{ secrets.KEYCLOAK_SECRET }}" >> build.env.local
echo NEXTAUTH_URL="https://buildtheearth.net" >> build.env.local
echo NEXTAUTH_SECRET="${{ secrets.NEXTAUTH_SECRET }}" >> build.env.local
echo NEXT_PUBLIC_API_URL="https://api.buildtheearth.net/api/v1" >> build.env.local
echo NEXT_PUBLIC_MAPBOX_TOKEN="${{ secrets.MAPBOX_TOKEN }}" >> build.env.local
echo PORT=3000 >> build.env.local
echo KEYCLOAK_SECRET="${{ secrets.KEYCLOAK_SECRET }}" >> apps/frontend/build.env.local
echo NEXTAUTH_URL="https://buildtheearth.net" >> apps/frontend/build.env.local
echo NEXTAUTH_SECRET="${{ secrets.NEXTAUTH_SECRET }}" >> apps/frontend/build.env.local
echo NEXT_PUBLIC_API_URL="https://api.buildtheearth.net/api/v1" >> apps/frontend/build.env.local
echo NEXT_PUBLIC_MAPBOX_TOKEN="${{ secrets.MAPBOX_TOKEN }}" >> apps/frontend/build.env.local
echo PORT=3000 >> apps/frontend/build.env.local
- name: Build the Docker image
run: docker build . --file Dockerfile --tag ghcr.io/buildtheearth/website-frontend:$(git rev-parse --short HEAD) --tag ghcr.io/buildtheearth/website-frontend:latest
run: docker build . --file apps/frontend/Dockerfile --tag ghcr.io/buildtheearth/website-frontend:$(git rev-parse --short HEAD) --tag ghcr.io/buildtheearth/website-frontend:latest
- name: Docker push tag
run: docker push ghcr.io/buildtheearth/website-frontend:$(git rev-parse --short HEAD)
- name: Docker push latest
Expand Down
3 changes: 2 additions & 1 deletion apps/api/src/util/QuestionData.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,4 +42,5 @@ export const questions = [
imageUploadQuestionDataSchema,
dropdownQuestionDataSchema,
checkboxQuestionDataSchema,
];
];
// WE WO CHANGES
3 changes: 2 additions & 1 deletion apps/frontend/src/utils/Color.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,5 @@ export function getRandomColor(): MantineColor {
'teal',
];
return colors[Math.floor(Math.random() * colors.length)];
}
}
// WE WO CHANGES

0 comments on commit 96e9f62

Please sign in to comment.