Code development platform for open source projects from the European Union institutions

Skip to content
Snippets Groups Projects
Commit 730e5e3a authored by Arkadiusz SZCZECINSKI's avatar Arkadiusz SZCZECINSKI
Browse files

:construction_worker: minor fix for building psw rotation image

parent 86a68a90
No related branches found
No related tags found
1 merge request!148Draft: Netbox password rotation service
......@@ -56,7 +56,7 @@ deliver-image-job:
IMAGE_TAG: "testing-${CI_COMMIT_BRANCH}"
IMAGE_TAG_POSTGRES: "15-alpine"
IMAGE_TAG_REDIS: "7-alpine"
IMAGE_TAG_PSW_ROTATION: "PSW-ratation-${CI_COMMIT_BRANCH}"
IMAGE_TAG_PSW_ROTATION: "PSW-rotation-${CI_COMMIT_BRANCH}"
script:
- ansible-playbook ansible/deliver.yml
rules:
......
......@@ -54,13 +54,13 @@
community.docker.docker_image:
build:
pull: true
path: ../docker/psw_rotation
path: ../
args:
http_proxy: "{{ lookup('ansible.builtin.env', 'HTTP_PROXY') }}"
https_proxy: "{{ lookup('ansible.builtin.env', 'HTTPS_PROXY') }}"
nocache: true
name: "{{ lookup('ansible.builtin.env', 'CI_PROJECT_NAME') }}/psw_rotation:{{ lookup('ansible.builtin.env', 'CI_COMMIT_SHORT_SHA') }}"
repository: "{{ lookup('ansible.builtin.env', 'CI_REGISTRY_IMAGE') }}/psw_rotation:{{ lookup('ansible.builtin.env', 'CI_COMMIT_SHORT_SHA') }}"
name: "{{ lookup('ansible.builtin.env', 'CI_PROJECT_NAME') }}/docker/psw_rotation:{{ lookup('ansible.builtin.env', 'CI_COMMIT_SHORT_SHA') }}"
repository: "{{ lookup('ansible.builtin.env', 'CI_REGISTRY_IMAGE') }}/docker/psw_rotation:{{ lookup('ansible.builtin.env', 'CI_COMMIT_SHORT_SHA') }}"
push: true
force_source: true
force_tag: true
......@@ -132,7 +132,7 @@
- name: Remove local image PSW rotation
community.docker.docker_image:
state: absent
name: "{{ lookup('ansible.builtin.env', 'CI_PROJECT_NAME') }}/psw_rotation:{{ lookup('ansible.builtin.env', 'CI_COMMIT_SHORT_SHA') }}"
name: "{{ lookup('ansible.builtin.env', 'CI_PROJECT_NAME') }}/docker/psw_rotation:{{ lookup('ansible.builtin.env', 'CI_COMMIT_SHORT_SHA') }}"
force_absent: true
- name: Remove source image Netbox
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment