project-config/playbooks/translation/openstack-translation-artif...

17 lines
572 B
YAML

- hosts: localhost
tasks:
- block:
- name: Create AFS token
include_role:
name: create-afs-token
- name: Upload to afs
include_role:
name: upload-afs-synchronize
vars:
afs_source: "{{ zuul.executor.work_root }}/artifacts/"
afs_target: "/afs/.openstack.org/project/tarballs.opendev.org/openstack/translation-source/{{ zuul.project.short_name }}/"
- name: Destroy AFS token
include_role:
name: destroy-afs-token
when: zuul_success | bool