Merge branch 'main' of github.com:lanzhihong6/stock-scanner
# Conflicts: # stock_analyzer.py # web_server.py
This commit is contained in:
4
.env
4
.env
@@ -1 +1,3 @@
|
||||
GEMINI_API_KEY= xxxxxx
|
||||
GEMINI_API_KEY=
|
||||
GEMINI_API_URL=
|
||||
GEMINI_API_MODEL=
|
||||
|
||||
32
.github/workflows/docker-image.yml
vendored
Normal file
32
.github/workflows/docker-image.yml
vendored
Normal file
@@ -0,0 +1,32 @@
|
||||
name: Docker Build and Push
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [ main ]
|
||||
pull_request:
|
||||
branches: [ main ]
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
|
||||
- name: Login to Docker Hub
|
||||
uses: docker/login-action@v1
|
||||
with:
|
||||
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
||||
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
||||
|
||||
- name: Set up Docker Buildx
|
||||
uses: docker/setup-buildx-action@v1
|
||||
|
||||
- name: Build and push
|
||||
uses: docker/build-push-action@v2
|
||||
with:
|
||||
context: .
|
||||
push: true
|
||||
tags: |
|
||||
${{ secrets.DOCKERHUB_USERNAME }}/stock-scanner:latest
|
||||
${{ secrets.DOCKERHUB_USERNAME }}/stock-scanner:${{ github.sha }}
|
||||
Reference in New Issue
Block a user