Skip to content

Commit

Permalink
allow error for apt update docker
Browse files Browse the repository at this point in the history
Signed-off-by: Kay Yan <kay.yan@daocloud.io>
  • Loading branch information
yankay committed Apr 15, 2024
1 parent 1b870a1 commit 4d6fbc5
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .gitlab-ci/packet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ packet_debian10-calico:
when: on_success

packet_debian10-docker:
stage: deploy-part2
stage: unit-tests
extends: .packet_pr
when: on_success

Expand Down
6 changes: 6 additions & 0 deletions roles/container-engine/docker/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,9 +71,15 @@
apt_repository:
repo: "{{ item }}"
state: present
update_cache: false
with_items: "{{ docker_repo_info.repos }}"
when: ansible_pkg_mgr == 'apt'

- name: Run the equivalent of "apt-get update" as a separate step
ansible.builtin.apt:
update_cache: yes
ignore_errors: true # noqa ignore-errors

- name: Configure docker repository on Fedora
template:
src: "fedora_docker.repo.j2"
Expand Down

0 comments on commit 4d6fbc5

Please sign in to comment.