File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1919 [[ -n "${{ secrets.SERVER_SSH_KEY }}" ]] || { echo "❌ SERVER_SSH_KEY secret missing"; exit 1; }
2020 [[ -n "${{ vars.DOCKER_COMPOSE_DIR }}" ]] || { echo "❌ DOCKER_COMPOSE_DIR variable missing"; exit 1; }
2121 [[ -n "${{ vars.DOCKER_COMPOSE_SERVICE }}" ]] || { echo "❌ DOCKER_COMPOSE_SERVICE variable missing"; exit 1; }
22+ [[ -n "${{ vars.VITE_APP_API_URL }}" ]] || { echo "❌ VITE_APP_API_URL variable missing"; exit 1; }
2223 echo "✅ All secrets and variables configured"
2324
2425 build :
3334 - name : Set up Docker Buildx
3435 uses : docker/setup-buildx-action@v3
3536
37+ - name : Create .env file
38+ run : |
39+ cp env/.env.example env/.env
40+ echo -e "\n" >> env/.env
41+ echo "VITE_APP_API_URL=${{vars.VITE_APP_API_URL}}" >> env/.env
42+
3643 - name : Build Docker image
3744 run : |
38- echo "IMAGE_NAME=weather-web-fe-build-gha" >> $GITHUB_ENV
3945 docker build -t weather-web-fe-build-gha:latest .
4046
4147 - name : Save Docker image to tarball
You can’t perform that action at this time.
0 commit comments