several fixes #5
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: Basic FastAPI Test container | |
on: | |
push: | |
paths: | |
- 'demo-basic-fastapi/**' # Specify path to your directory | |
jobs: | |
build-and-push-py-test-image: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Repository | |
uses: actions/checkout@v2 | |
- name: Set up Docker Buildx | |
uses: docker/setup-buildx-action@v1 | |
- name: Login to Docker Hub | |
uses: docker/login-action@v1 | |
with: | |
username: ${{ secrets.DOCKERHUB_USR }} | |
password: ${{ secrets.DOCKERHUB_PWD }} | |
- name: Build and Push | |
run: | | |
cd demo-basic-fastapi/ | |
chmod +x build.sh # Ensure the script is executable | |
./build.sh |