Skip to content

Instantly share code, notes, and snippets.

@larstobi
Created October 23, 2024 10:24
Show Gist options
  • Save larstobi/c54974781e4777bf10ff8c631eadcc4f to your computer and use it in GitHub Desktop.
Save larstobi/c54974781e4777bf10ff8c631eadcc4f to your computer and use it in GitHub Desktop.
pull job example
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