Update external base images #1011
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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!" | |