Skip to content

Commit cd9bb64

Browse files
authored
Update release.yml
1 parent 1a4ceef commit cd9bb64

1 file changed

Lines changed: 9 additions & 4 deletions

File tree

.github/workflows/release.yml

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,7 @@ name: Build and push docker images
22

33
on:
44
push:
5-
branches:
6-
- master
5+
branches: [main]
76

87
jobs:
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

0 commit comments

Comments
 (0)