Skip to content

Commit 53f7909

Browse files
committed
Release v0.0.2
1 parent 61d8089 commit 53f7909

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

.github/workflows/docker.yaml

+6-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
on:
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"
@@ -13,6 +13,9 @@ jobs:
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:
@@ -25,4 +28,4 @@ jobs:
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 }}

0 commit comments

Comments
 (0)