File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed
Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change 11on :
22 push :
3- branches :
4- - main
3+ tags :
4+ - " v[0-9]+.[0-9]+.[0-9]+ "
55 # paths:
66 # - "6-deployed-agents/finance/stock-price-agent/agent.py"
77 # - "6-deployed-agents/finance/stock-price-agent/Dockerfile"
1313 IMAGE_NAME : scrtlabs/fetchai-stock-price-agent
1414 steps :
1515 - uses : actions/checkout@v4
16+ - name : Get the version
17+ id : get_version
18+ run : echo ::set-output name=VERSION::${GITHUB_REF/refs\/tags\//}
1619 - name : Login to the Container registry
1720 uses : docker/login-action@v3
1821 with :
2528 file : 6-deployed-agents/finance/stock-price-agent/Dockerfile
2629 context : 6-deployed-agents/finance/stock-price-agent/
2730 push : true
28- tags : ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
31+ tags : ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ steps.get_version.outputs.VERSION }}
You can’t perform that action at this time.
0 commit comments