Bump playwright/python from v1.44.0-jammy to v1.45.0-jammy in /docker/auxiliary-containers/gcb_playwright #13
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 and Push Containers | |
on: | |
pull_request: | |
types: | |
- closed | |
paths: | |
- 'docker/auxiliary-containers/**/Dockerfile' | |
workflow_dispatch: | |
inputs: | |
container: | |
type: choice | |
description: The tag to update | |
required: true | |
options: | |
- gcb_playwright | |
jobs: | |
build-and-push-containers: | |
runs-on: ubuntu-latest | |
permissions: | |
packages: write | |
contents: read | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
## This is needed for multi-architecture builds | |
- name: Set up QEMU | |
uses: docker/setup-qemu-action@v3 | |
- name: Set up Docker Buildx | |
uses: docker/setup-buildx-action@v3 | |
- name: Login to Docker Registry | |
uses: docker/login-action@v3 | |
with: | |
username: ${{ secrets.DOCKERHUB_USERNAME }} | |
password: ${{ secrets.DOCKERHUB_TOKEN }} | |
- if: github.event_name == 'pull_request' && github.event.pull_request.merged == true | |
name: Build and Push auxiliary-containers (PR) | |
shell: bash | |
run: | | |
PR_FILES=$(curl -s "https://api.github.com/repos/${{ github.repository }}/pulls/${{ github.event.pull_request.number }}/files" | jq -r '.[] | .filename') | |
CHANGED_SUBFOLDERS=$(echo "$PR_FILES" | grep -E '^docker/auxiliary-containers/[^/]+/' | sed -r 's|^docker/auxiliary-containers/([^/]+)/.*|\1|' | sort -u) | |
echo $CHANGED_SUBFOLDERS | |
./docker/auxiliary-containers/build-containers.sh $CHANGED_SUBFOLDERS | |
- if: github.event_name == 'workflow_dispatch' | |
name: Build and Push auxiliary-containers (manual) | |
shell: bash | |
run: | | |
./docker/auxiliary-containers/build-containers.sh ${{ github.event.inputs.container }} |