Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
---
- name: Log into scaleway docker registry
command: docker login {{ scaleway_registry }} -u {{ scaleway_user }} -p {{ scaleway_token }}
no_log: true
- name: Pull docker images
command: docker-compose pull
args:
chdir: "{{ docker_compose_path }}"
- name: Log out of any docker registry
command: docker logout
no_log: true
- name: Deploy services
command: docker-compose up -d
args:
chdir: "{{ docker_compose_path }}"
- name: Remove old image
command: docker image prune -a -f
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment