Skip to content

Commit ef3fd64

Browse files
create production env in github actions
1 parent c42b0d7 commit ef3fd64

File tree

3 files changed

+13
-4
lines changed

3 files changed

+13
-4
lines changed

.env.production

-3
This file was deleted.

.github/workflows/build-and-test.yml

+10
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,16 @@ jobs:
4646
with:
4747
username: ${{ secrets.DOCKERHUB_USERNAME }}
4848
password: ${{ secrets.DOCKERHUB_TOKEN }}
49+
- name: Make env file for production
50+
uses: SpicyPizza/[email protected]
51+
with:
52+
envkey_VITE_APP_DOMAIN: ${{ secrets.DOCKERHUB_USERNAME }}
53+
envkey_VITE_APP_KEYCLOAK_URL: ${{ secrets.DOCKERHUB_USERNAME }}
54+
envkey_VITE_APP_BACKEND_URL: ${{ secrets.DOCKERHUB_USERNAME }}
55+
directory: .
56+
file_name: .env.production
57+
fail_on_empty: true
58+
sort_keys: false
4959
- name: Build and push
5060
uses: docker/build-push-action@v6
5161
with:

.gitignore

+3-1
Original file line numberDiff line numberDiff line change
@@ -25,4 +25,6 @@ coverage
2525
*.sw?
2626

2727
src/graphql/*.ts
28-
src/graphql/*.js
28+
src/graphql/*.js
29+
30+
.env.*

0 commit comments

Comments
 (0)