Use new build action.
Some checks failed
Build php apache 8.4 image / Build-and-release-image (push) Failing after 5m3s

This commit is contained in:
2025-05-06 09:35:07 +00:00
parent 685b133ad3
commit 2253f60dfa

View File

@@ -5,7 +5,7 @@ on:
branches: [ master ] branches: [ master ]
schedule: schedule:
# Run every Sunday at midnight # Run every Sunday at midnight
- cron: '0 0 * * 0' - cron: '1 0 * * 0'
env: env:
IMAGE: /docker/php-apache-8-4 IMAGE: /docker/php-apache-8-4
@@ -21,6 +21,9 @@ jobs:
steps: steps:
- name: Set up Docker Buildx - name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2 uses: docker/setup-buildx-action@v2
with:
buildkitd-flags: '--allow-insecure-entitlement network.host'
driver-opts: network=host
- name: Login to Docker Hub - name: Login to Docker Hub
uses: docker/login-action@v3 uses: docker/login-action@v3
@@ -49,10 +52,12 @@ jobs:
images: ${{ secrets.REGISTRY_URL }}${{ env.IMAGE }} images: ${{ secrets.REGISTRY_URL }}${{ env.IMAGE }}
- name: Build and push Docker image - name: Build and push Docker image
uses: docker/build-push-action@v4 uses: docker/build-push-action@v6
env: env:
ACTIONS_RUNTIME_TOKEN: '' ACTIONS_RUNTIME_TOKEN: ''
with: with:
allow: network.host
network: host
tags: ${{ vars.LOCAL_REGISTRY_URL }}${{ env.IMAGE }}:latest tags: ${{ vars.LOCAL_REGISTRY_URL }}${{ env.IMAGE }}:latest
push: true push: true