Skip to content

Bump playwright/python from v1.49.0-jammy to v1.49.1-jammy in /docker/auxiliary-containers/gcb_playwright #19

Bump playwright/python from v1.49.0-jammy to v1.49.1-jammy in /docker/auxiliary-containers/gcb_playwright

Bump playwright/python from v1.49.0-jammy to v1.49.1-jammy in /docker/auxiliary-containers/gcb_playwright #19

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: Eco CI Energy Estimation - Initialize
uses: green-coding-solutions/eco-ci-energy-estimation@main
with:
task: start-measurement
project: "Green Metrics Tool"
machine: "ubuntu-latest"
tags: "CI/CD,Build-Auxillary-Containers-Workflow"
gmt-api-token: ${{ secrets.GMT_API_TOKEN }}
electricitymaps-api-token: ${{ secrets.ELECTRICITYMAPS_TOKEN }}
- 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 }}
- name: Eco CI Energy Estimation - Get Measurement
uses: green-coding-solutions/eco-ci-energy-estimation@main
with:
task: get-measurement
- name: Eco CI Energy Estimation - End Measurement
uses: green-coding-solutions/eco-ci-energy-estimation@main
with:
task: display-results