Browse Source

Use python3 when creating the docker image tags

python2 will be gone away soon so switch to python3.

Change-Id: If0511db6fbd97fe72184b3fa1ef92f29f8cae4c7
Thomas Bechtold 1 month ago
parent
commit
ed0b94da64
2 changed files with 2 additions and 2 deletions
  1. 1
    1
      tools/gate/playbooks/docker-image-build.yaml
  2. 1
    1
      tools/image_tags.py

+ 1
- 1
tools/gate/playbooks/docker-image-build.yaml View File

@@ -28,7 +28,7 @@
28 28
             msg: "{{ tags | to_json }}"
29 29
 
30 30
     - name: Determine tags
31
-      shell: echo '{{ tags | to_json }}' | python {{ zuul.project.src_dir }}/tools/image_tags.py
31
+      shell: echo '{{ tags | to_json }}' | python3 {{ zuul.project.src_dir }}/tools/image_tags.py
32 32
       environment:
33 33
         BRANCH: "{{ zuul.branch }}"
34 34
         CHANGE: "{{ zuul.change }}"

+ 1
- 1
tools/image_tags.py View File

@@ -1,4 +1,4 @@
1
-#!/bin/python
1
+#!/usr/bin/python3
2 2
 # Copyright 2018 AT&T Intellectual Property.  All other rights reserved.
3 3
 #
4 4
 # Licensed under the Apache License, Version 2.0 (the "License");

Loading…
Cancel
Save