Skip to content

Instantly share code, notes, and snippets.

@TommyTheTribe
Created May 29, 2021 10:48
Show Gist options
  • Save TommyTheTribe/4736f47c7cb095e78649af9eab6fbc7a to your computer and use it in GitHub Desktop.
Save TommyTheTribe/4736f47c7cb095e78649af9eab6fbc7a to your computer and use it in GitHub Desktop.
---
- 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