增加通过model切换讯飞版本,删除version字段 #10
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Docker Image CI | |
on: | |
push: | |
branches: [ "main" ] | |
pull_request: | |
branches: [ "main" ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
# Generate a timestamp and store it in a variable | |
- name: Generate Timestamp | |
id: timestamp | |
run: echo "::set-output name=timestamp::$(date +%s)" | |
- name: Build the Docker image | |
run: | | |
TIMESTAMP="${{ steps.timestamp.outputs.timestamp }}" | |
docker build . --file Dockerfile --tag 0001coder/spark-api-gateway:${TIMESTAMP} | |
- name: Log in to Docker Hub | |
run: docker login -u ${{ secrets.DOCKER_USERNAME }} -p ${{ secrets.DOCKER_PASSWORD }} | |
- name: Push Docker image to registry | |
run: | | |
TIMESTAMP="${{ steps.timestamp.outputs.timestamp }}" | |
docker push 0001coder/spark-api-gateway:${TIMESTAMP} |