Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
includeno committed Jan 7, 2024
1 parent a0713ea commit 74ae6f3
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build_python_firefox_buster_image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ jobs:
- name: Get latest version
run: |
python -m pip install requests
python latest_version_firefox.py --lang python
python latest_version_firefox.py --lang python --tag slim-buster
- name: Output Docker info
run: docker info
- name: Sets build date
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/build_python_firefox_slim_image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ jobs:
- name: Get latest version
run: |
python -m pip install requests
python latest_version_firefox.py --lang python
python latest_version_firefox.py --lang python --tag slim
- name: Output Docker info
run: docker info
- name: Sets build date
Expand Down
3 changes: 2 additions & 1 deletion latest_version_firefox.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ def get_latest_geckodriver_version():
argparse.ArgumentParser(description='Get the latest version of the specified language')
parser = argparse.ArgumentParser()
parser.add_argument('--lang', type=str, default='python', help='language')
parser.add_argument('--tag', type=str, default='slim-buster', help='tag')
args = parser.parse_args()

def get_tag_by_lang(lang):
Expand All @@ -56,7 +57,7 @@ def get_tag_by_lang(lang):

current_tag=get_tag_by_lang(args.lang)
print("Current Tag: ", current_tag)
NEW_TAG=args.lang+"_firefox_"+FIREFOX_ESR_VERSION+"_geckodriver_"+GECKODRIVER_VERSION
NEW_TAG=args.lang+"_firefox_"+FIREFOX_ESR_VERSION+"_geckodriver_"+GECKODRIVER_VERSION+"_"+args.tag
with open('NEW_TAG', 'w') as f:
f.write(f'NEW_TAG={NEW_TAG}\n')

Expand Down

0 comments on commit 74ae6f3

Please sign in to comment.