mirror of
https://github.com/internetee/epp_proxy.git
synced 2025-08-21 14:49:33 +02:00
Set tag
This commit is contained in:
parent
05a83983fe
commit
b001f3f17c
1 changed files with 15 additions and 5 deletions
20
.github/workflows/build_base_image.yml
vendored
20
.github/workflows/build_base_image.yml
vendored
|
@ -15,7 +15,7 @@ jobs:
|
||||||
|
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
|
|
||||||
- name: Set image tag
|
- name: Get versions
|
||||||
shell: python
|
shell: python
|
||||||
run: |
|
run: |
|
||||||
import os
|
import os
|
||||||
|
@ -26,10 +26,20 @@ jobs:
|
||||||
(key, val) = line.split()
|
(key, val) = line.split()
|
||||||
versions[key] = val
|
versions[key] = val
|
||||||
except:
|
except:
|
||||||
print("Something is not right")
|
print("Something is off with getting the versions")
|
||||||
print("internetee/erlang-ruby:" + versions["erlang"] + "-" + versions["ruby"])
|
tag = "internetee/erlang-ruby:" + versions["erlang"] + "-" + versions["ruby"]
|
||||||
print(os.environ)
|
try:
|
||||||
#echo "TAG=internetee/erlang-ruby:'$ERLANG_VER'-'$RUBY_VER'" >> $GITHUB_ENV
|
f = open("TAG", "x")
|
||||||
|
f.write(tag)
|
||||||
|
except:
|
||||||
|
print("Something is not right with setting the tag")
|
||||||
|
finally:
|
||||||
|
f.close()
|
||||||
|
|
||||||
|
- name: Set image tag"
|
||||||
|
run: |
|
||||||
|
TAG = `cat TAG`
|
||||||
|
echo "TAG=internetee/erlang-ruby:'$ERLANG_VER'-'$RUBY_VER'" >> $GITHUB_ENV
|
||||||
|
|
||||||
- name: Build image
|
- name: Build image
|
||||||
run: |
|
run: |
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue