forked from aptos-labs/aptos-core
-
Notifications
You must be signed in to change notification settings - Fork 0
46 lines (38 loc) · 1.18 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
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@v3
- 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@v5
with:
token: ${{ secrets.REPO_TOKEN }}
commit-message: "Update Docker images"
title: "Update Docker images"
body: "Update Docker images"
base: main
branch: "docker-update-images"
delete-branch: true
team-reviewers: |
aptos-labs/prod-eng
aptos-labs/security
labels: |
CICD:run-e2e-tests