Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add wp-cli config and entrypoint #2

Merged
merged 8 commits into from
Jan 9, 2024
Merged
Prev Previous commit
Next Next commit
Add IMAGE_CONTEXT to workflow
tfirdaus committed Jan 9, 2024
commit 6b9162b4f859948cfbd6e837570e93849c453850
7 changes: 4 additions & 3 deletions .github/workflows/wp.yml
Original file line number Diff line number Diff line change
@@ -27,6 +27,7 @@ jobs:
version: ["7.4", "8.0", "8.1", "8.2"]

env:
IMAGE_CONTEXT: ./wp/php${{ matrix.version }}/
IMAGE_FILE: ./wp/php${{ matrix.version }}/Dockerfile
IMAGE_REGISTRY: ghcr.io
IMAGE_TAG: ghcr.io/${{ github.repository_owner }}/wp:php${{ matrix.version }}-fpm
@@ -65,10 +66,10 @@ jobs:
- name: Build and push
uses: docker/build-push-action@v5
with:
context: .
push: ${{ github.ref == 'refs/heads/main' && github.event_name != 'pull_request' }}
provenance: false
load: true
provenance: false
push: ${{ github.ref == 'refs/heads/main' && github.event_name != 'pull_request' }}
context: ${{ env.IMAGE_CONTEXT }}
file: ${{ env.IMAGE_FILE }}
tags: ${{ env.IMAGE_TAG }}
labels: ${{ steps.metadata.outputs.labels }}