Skip to content

Commit

Permalink
Automatically detect anaconda version and use as
Browse files Browse the repository at this point in the history
tag for automatic building of docker anaconda3tmux.
  • Loading branch information
Anacristina0914 committed Nov 21, 2023
1 parent 0b6eea6 commit 89d1e59
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/docker-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ on:
env:
user: ${{ secrets.DOCKER_USER }}
passwd: ${{ secrets.DOCKER_PW }}
anaconda_tag: $(curl -sL https://repo.anaconda.com/archive |grep '.*Anaconda3-.*-Linux' |head -1 |cut -d"-" -f 2,3)

jobs:
build_push:
Expand Down Expand Up @@ -37,5 +38,5 @@ jobs:
docker push ${{ env.user }}/samtools:latest
docker build -t anaconda3tmux:latest anaconda3tmux/
docker tag anaconda3tmux:latest ${{env.user}}/anaconda3tmux:latest
docker tag anaconda3tmux:latest ${{env.user}}/anaconda3tmux:${{env.anaconda_tag}}
docker push ${{ env.user }}/anaconda3tmux:latest

0 comments on commit 89d1e59

Please sign in to comment.