mirror of
https://github.com/internetee/epp_proxy.git
synced 2025-08-21 14:49:33 +02:00
create tag with python
This commit is contained in:
parent
34a8c2b2f3
commit
f17331151a
1 changed files with 13 additions and 16 deletions
29
.github/workflows/build_base_image.yml
vendored
29
.github/workflows/build_base_image.yml
vendored
|
@ -16,23 +16,20 @@ jobs:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
|
|
||||||
- name: Set image tag
|
- name: Set image tag
|
||||||
shell: bash
|
shell: python
|
||||||
run: |
|
run: |
|
||||||
IFS=$'\n'
|
import os
|
||||||
read -d '' -r -a lines < .tool-versions
|
versions = {}
|
||||||
erlang_line="${lines[0]}"
|
try:
|
||||||
ruby_line="${lines[1]}"
|
with open(".tool-versions", "r") as f:
|
||||||
echo $erlang_line
|
for line in f:
|
||||||
echo $ruby_line
|
(key, val) = line.split()
|
||||||
echo 'HERE 1'
|
versions[key] = val
|
||||||
erlang=(${erlang_line// / })
|
except:
|
||||||
echo $erlang
|
print("Something is not right")
|
||||||
echo 'HERE 2'
|
print("internetee/erlang-ruby:" + versions["erlang"] + "-" + versions["ruby"])
|
||||||
ruby=(${ruby_line// / })
|
print(os.environ["GITHUB_ENV"])
|
||||||
ERLANG_VER=${erlang[1]}
|
#echo "TAG=internetee/erlang-ruby:'$ERLANG_VER'-'$RUBY_VER'" >> $GITHUB_ENV
|
||||||
RUBY_VER=${ruby[1]}
|
|
||||||
echo $ERLANG_VER
|
|
||||||
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