We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8da4085 commit 3177078Copy full SHA for 3177078
.github/workflows/php-docker-public.yml
@@ -50,6 +50,15 @@ jobs:
50
with:
51
images: ${{ env.DOCKER_ID }}/${{ env.IMAGE_NAME }}
52
53
+ - name: Copy .env.example to .env
54
+ run: cp .env.example .env
55
+
56
+ - name: Export environment variables
57
+ run: |
58
+ set -o allexport
59
+ source .env
60
+ set +o allexport
61
62
- name: Build and push Docker image
63
id: build-and-push
64
uses: docker/build-push-action@v6
@@ -59,6 +68,6 @@ jobs:
68
tags: ${{ steps.meta.outputs.tags }}
69
labels: ${{ steps.meta.outputs.labels }}
70
build-args: |
- PHP_VERSION=8.3
- USER_ID=1000
- GROUP_ID=1000
71
+ PHP_VERSION=${{ env.PHP_VERSION }}
72
+ USER_ID=${{ env.USER_ID }}
73
+ GROUP_ID=${{ env.GROUP_ID }}
0 commit comments