File tree 1 file changed +6
-3
lines changed
1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change 1
1
on :
2
2
push :
3
- branches :
4
- - main
3
+ tags :
4
+ - " v[0-9]+.[0-9]+.[0-9]+ "
5
5
# paths:
6
6
# - "6-deployed-agents/finance/stock-price-agent/agent.py"
7
7
# - "6-deployed-agents/finance/stock-price-agent/Dockerfile"
13
13
IMAGE_NAME : scrtlabs/fetchai-stock-price-agent
14
14
steps :
15
15
- uses : actions/checkout@v4
16
+ - name : Get the version
17
+ id : get_version
18
+ run : echo ::set-output name=VERSION::${GITHUB_REF/refs\/tags\//}
16
19
- name : Login to the Container registry
17
20
uses : docker/login-action@v3
18
21
with :
25
28
file : 6-deployed-agents/finance/stock-price-agent/Dockerfile
26
29
context : 6-deployed-agents/finance/stock-price-agent/
27
30
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