Skip to content

Commit 61d8089

Browse files
committed
Add github action
1 parent 0eb5ee5 commit 61d8089

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

.github/workflows/docker.yaml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
on:
2+
push:
3+
branches:
4+
- main
5+
#paths:
6+
#- "6-deployed-agents/finance/stock-price-agent/agent.py"
7+
#- "6-deployed-agents/finance/stock-price-agent/Dockerfile"
8+
jobs:
9+
docker:
10+
runs-on: ubuntu-latest
11+
env:
12+
REGISTRY: ghcr.io
13+
IMAGE_NAME: scrtlabs/fetchai-stock-price-agent
14+
steps:
15+
- uses: actions/checkout@v4
16+
- name: Login to the Container registry
17+
uses: docker/login-action@v3
18+
with:
19+
registry: ${{ env.REGISTRY }}
20+
username: ${{ github.actor }}
21+
password: ${{ secrets.GITHUB_TOKEN }}
22+
- name: Build
23+
uses: docker/build-push-action@v4
24+
with:
25+
file: 6-deployed-agents/finance/stock-price-agent/Dockerfile
26+
context: 6-deployed-agents/finance/stock-price-agent/
27+
push: true
28+
tags: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}

0 commit comments

Comments
 (0)