-
Notifications
You must be signed in to change notification settings - Fork 134
37 lines (32 loc) · 1.18 KB
/
update-external-base-images.yml
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
name: Update external base images
on:
schedule:
- cron: '0 0 * * *'
workflow_dispatch:
jobs:
update-docker-files:
if: github.repository == 'demisto/dockerFiles'
runs-on: ubuntu-latest
steps:
- name: Check out repository code
uses: actions/checkout@v2
- run: echo "💡 The ${{ github.repository }} repository has been cloned to the runner."
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: '3.11'
- name: Setup Poetry
uses: Gr1N/setup-poetry@v8
- name: run
run: |
git config --global user.email ""
git config --global user.name "auto dockerfiles update"
echo "==== $(date): Starting pipenv setup... ===="
python -m pip install --upgrade pip
pip install pipenv==2023.3.18
pipenv install
echo "==== Finished ===="
[[ ${{ vars.DISABLE_TIMESTAMP_AUTOUPDATES }} = 'true' ]] && tu_flag="--no-timestamp-updates"
echo tu_flag being passed is $tu_flag
pipenv run python ./utils/auto_dockerfile_update/update_dockerfiles.py $tu_flag
echo "Done!"