Skip to content

Docker Update Images #9

Docker Update Images

Docker Update Images #9

name: Docker Update Images
permissions:
pull-requests: write
contents: write
on:
workflow_dispatch:
schedule:
- cron: "0 9 * * 1" # once a week
pull_request:
paths:
- scripts/update_docker_images.py
- .github/workflows/docker-update-images.yaml
jobs:
update:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Login to Docker Hub
uses: docker/login-action@v2
with:
username: ${{ secrets.ENV_DOCKERHUB_USERNAME }}
password: ${{ secrets.ENV_DOCKERHUB_PASSWORD }}
- name: Check and pin updates (if any)
id: check_update
run: python3 scripts/update_docker_images.py
- name: Create Pull Request
if: ${{ steps.check_update.outputs.NEED_UPDATE == 'True' }}
uses: peter-evans/create-pull-request@a4f52f8033a6168103c2538976c07b467e8163bc # [email protected]
with:
commit-message: "Update Docker images"
title: "Update Docker images"
body: "Update Docker images. Generated by the Docker Update Images workflow."
base: main
branch: "docker-update-images"
delete-branch: true
labels: |
CICD:run-e2e-tests