Skip to content

Commit bfe665c

Browse files
fix the wokflow file
1 parent 5c0c7b1 commit bfe665c

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

.github/workflows/merged.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ on:
88
- perl_40
99

1010
env:
11-
BRANCH_NAME: ${{ github.ref_name == "master" && 'latest' : github.ref_name }}
11+
BRANCH_NAME: ${{ github.ref_name == "master" && 'latest' || github.ref_name }}
1212

1313
jobs:
1414
perl:
@@ -43,6 +43,11 @@ jobs:
4343
with:
4444
username: ${{ secrets.DOCKERHUB_USERNAME }}
4545
password: ${{ secrets.DOCKERHUB_TOKEN }}
46+
-
47+
name: Pull the associated perl image
48+
run: |
49+
docker pull deriv/perl:${{env.BRANCH_NAME}}
50+
docker tag deriv/perl:${{env.BRANCH_NAME}} deriv/perl:latest
4651
-
4752
name: Build And Publish Docker Image
4853
uses: docker/build-push-action@0565240e2d4ab88bba5387d719585280857ece09

0 commit comments

Comments
 (0)