mirror of
https://github.com/EpicMorg/docker-scripts.git
synced 2024-12-29 08:05:48 +03:00
STAM
61938a770d
bump versions updated `LazyGIT` to `0.40.2` converterd some envs to args sources.list fix + nextcloud updates python fix java fixes python fix java fixes bitbucket full images
52 lines
1.6 KiB
YAML
52 lines
1.6 KiB
YAML
- name: Read versions from file
|
|
slurp:
|
|
src: "roles/common/files/versions/bitbucket/3.jdk8.txt"
|
|
register: version_output
|
|
|
|
- name: Set version variable
|
|
set_fact:
|
|
bitbucket_versions: "{{ version_output['content'] | b64decode | trim | split('\n') }}"
|
|
|
|
- name: Create directories for Bitbucket versions
|
|
file:
|
|
path: "{{ target_directory_bitbucket_3 }}/{{ item }}"
|
|
state: directory
|
|
mode: '0755'
|
|
force: true
|
|
with_items: "{{ bitbucket_versions }}"
|
|
|
|
- name: Copy template with link to each version directory
|
|
template:
|
|
src: "template.stash.3.env.j2"
|
|
dest: "{{ target_directory_bitbucket_3 }}/{{ item }}/.env"
|
|
force: true
|
|
with_items: "{{ bitbucket_versions }}"
|
|
|
|
- name: Copy docker-compose.yml from 'files' directory to each version directory
|
|
copy:
|
|
src: "docker-compose.jdk8.yml"
|
|
dest: "{{ target_directory_bitbucket_3 }}/{{ item }}/docker-compose.yml"
|
|
force: true
|
|
with_items: "{{ bitbucket_versions }}"
|
|
|
|
- name: Copy Dockerfile from 'files' directory to each version directory
|
|
copy:
|
|
src: "Dockerfile.legacy.jdk8"
|
|
dest: "{{ target_directory_bitbucket_3 }}/{{ item }}/Dockerfile"
|
|
force: true
|
|
with_items: "{{ bitbucket_versions }}"
|
|
|
|
- name: Copy entrypoint.sh from 'files' directory to each version directory
|
|
copy:
|
|
src: "entrypoint.stash.sh"
|
|
dest: "{{ target_directory_bitbucket_3 }}/{{ item }}/entrypoint.sh"
|
|
force: true
|
|
with_items: "{{ bitbucket_versions }}"
|
|
|
|
- name: Copy Makefile from 'files' directory to each version directory
|
|
copy:
|
|
src: "Makefile"
|
|
dest: "{{ target_directory_bitbucket_3 }}/{{ item }}/Makefile"
|
|
force: true
|
|
with_items: "{{ bitbucket_versions }}"
|