chore(deps): Bump github/codeql-action from 3.26.13 to 3.27.0 in /.github/actions/build-docker-image #567
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 Nginx | |
on: | |
push: | |
branches: | |
- master | |
paths: | |
- "nginx/**" | |
- ".github/workflows/nginx.yml" | |
- ".github/actions/build-docker-image/**" | |
pull_request: | |
paths: | |
- "nginx/**" | |
- ".github/workflows/nginx.yml" | |
- ".github/actions/build-docker-image/**" | |
workflow_dispatch: | |
permissions: | |
contents: read | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
push_to_registry: | |
name: Push Docker image to GitHub Packages | |
runs-on: ubuntu-latest | |
permissions: | |
packages: write | |
contents: read | |
pull-requests: write | |
security-events: write | |
id-token: write | |
attestations: write | |
steps: | |
- name: Check out the repo | |
uses: actions/checkout@v4 | |
- name: Get image version | |
id: getversion | |
run: echo "version=$(head -n 1 nginx/Dockerfile | sed -r -e 's/^([^:]+):([^ @$-]+).*/\2/')" >> "${GITHUB_OUTPUT}" | |
- name: Build and push image | |
uses: ./.github/actions/build-docker-image | |
with: | |
context: nginx | |
push: ${{ github.base_ref == null }} | |
no-cache: ${{ github.event_name == 'workflow_dispatch' }} | |
cache-from: type=gha,scope=nginx | |
cache-to: type=gha,mode=max,scope=nginx | |
primaryTag: ghcr.io/automattic/vip-container-images/nginx:${{ steps.getversion.outputs.version }} | |
tags: ghcr.io/automattic/vip-container-images/nginx:latest |