Created
October 23, 2024 10:24
-
-
Save larstobi/c54974781e4777bf10ff8c631eadcc4f to your computer and use it in GitHub Desktop.
pull job example
This file contains hidden or 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
trigger: none | |
schedules: | |
- cron: '0 0 * * *' # Runs daily at midnight UTC | |
displayName: Daily Docker Pull | |
branches: | |
include: | |
- main | |
always: true | |
pool: | |
vmImage: 'ubuntu-latest' | |
parameters: | |
- name: images | |
type: object | |
default: | |
- 'ubuntu:latest' | |
- 'node:14-alpine' | |
- 'python:3.9' | |
steps: | |
- ${{ each image in parameters.images }}: | |
- script: | | |
echo "Pulling image ${{image}}" | |
docker pull ${{image}} | |
displayName: "Pulling ${{image}}" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment