Skip to content

Commit 49d46f0

Browse files
committed
Creating branch name tagged image as well as latest
1 parent 27c1f41 commit 49d46f0

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

.github/workflows/docker-dev.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@ jobs:
1313
- name: Checkout code
1414
uses: actions/checkout@v3
1515

16+
- name: Extract branch name
17+
run: echo "BRANCH_NAME=$(echo ${GITHUB_REF#refs/heads/} | tr '/' '-')" >> $GITHUB_ENV
18+
1619
- name: Login to DockerHub
1720
uses: docker/login-action@v3
1821
with:
@@ -24,4 +27,6 @@ jobs:
2427
with:
2528
context: .
2629
push: true
27-
tags: themranderson/conversionapi:latest
30+
tags: |
31+
themranderson/conversionapi:latest
32+
themranderson/conversionapi:${{ env.BRANCH_NAME }}

0 commit comments

Comments
 (0)