File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -2,8 +2,7 @@ name: Build and push docker images
22
33on :
44 push :
5- branches :
6- - master
5+ branches : [main]
76
87jobs :
98 build-and-push :
@@ -14,11 +13,17 @@ jobs:
1413 name : Checkout source code
1514 - name : Build the Docker image
1615 run : |
17- docker build . --tag synbiohub/plugin-visual-component-use:snapshot
16+ repo_name_lower=$(echo ${{ github.event.repository.name }}| tr [:upper:] [:lower:])
17+ tag="synbiohub/${repo_name_lower}:snapshot"
18+ echo $tag
19+ docker build . --tag $tag
1820 - uses : azure/docker-login@v1
1921 with :
2022 username : ${{ secrets.DOCKER_USERNAME }}
2123 password : ${{ secrets.DOCKER_PASSWORD }}
2224 - name : Push the image to Docker Hub
2325 run : |
24- docker push synbiohub/plugin-visual-component-use:snapshot
26+ repo_name_lower=$(echo ${{ github.event.repository.name }}| tr [:upper:] [:lower:])
27+ tag="synbiohub/${repo_name_lower}:snapshot"
28+ echo $tag
29+ docker push $tag
You can’t perform that action at this time.
0 commit comments