chore(deps): Bump ubuntu from 2e863c4
to 7229784
in /php-helpers
#5
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build PHP Helpers image | |
on: | |
push: | |
branches: | |
- master | |
paths: | |
- "php-helpers/**" | |
- ".github/workflows/php-helpers.yml" | |
pull_request: | |
branches: | |
- master | |
paths: | |
- "php-helpers/**" | |
- ".github/workflows/php-helpers.yml" | |
workflow_dispatch: | |
permissions: | |
contents: read | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
build: | |
name: Build Docker image | |
runs-on: ubuntu-latest | |
permissions: | |
contents: read | |
packages: write | |
steps: | |
- name: Check out the source code | |
uses: actions/checkout@v4 | |
- name: Set up Docker | |
uses: docker/setup-docker-action@c2d73c1a11a9b44be6d855121d75c3e0dac814c1 # v4.2.0 | |
with: | |
daemon-config: | | |
{ | |
"features": { | |
"containerd-snapshotter": true | |
} | |
} | |
- name: Login to DockerHub | |
uses: docker/login-action@9780b0c442fbb1117ed29e0efdff1e18412f7567 # v3 | |
with: | |
registry: https://ghcr.io | |
username: ${{ github.actor }} | |
password: ${{ secrets.GITHUB_TOKEN }} | |
if: ${{ github.event_name != 'pull_request' }} | |
- name: Set up Docker Buildx | |
uses: docker/setup-buildx-action@b5ca514318bd6ebac0fb2aedd5d36ec1b5c232a2 # v3 | |
- name: Build and push | |
uses: docker/bake-action@4ba453fbc2db7735392b93edf935aaf9b1e8f747 # v6.5.0 | |
with: | |
source: . | |
workdir: php-helpers | |
files: docker-bake.hcl | |
push: ${{ github.event_name != 'pull_request' }} | |
no-cache: ${{ github.event_name == 'workflow_dispatch' || github.event_name == 'schedule' }} | |
set: | | |
*.output=type=docker,rewrite-timestamp=true | |
*.output=type=image,push=${{ github.base_ref == null }},rewrite-timestamp=true,name=ghcr.io/automattic/vip-container-images/php-helpers:latest | |
env: | |
SOURCE_DATE_EPOCH: 0 |