forked from aptos-labs/aptos-core
-
Notifications
You must be signed in to change notification settings - Fork 1
46 lines (37 loc) · 1.2 KB
/
docker-update-images.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
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