updated action #7
Workflow file for this run
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 Build and Run | |
on: | |
push: | |
branches: | |
- backend # Change this to your main branch if different | |
jobs: | |
build-and-run: | |
environment: Couillard | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Repository | |
uses: actions/checkout@v2 | |
# - name: Set up Docker | |
# uses: docker/setup-buildx-action@v3 | |
- name: Build Docker Image | |
run: | | |
docker build -t couillard:${{ github.sha }} . | |
working-directory: backend/ | |
- name: Create Secrets File | |
run: | | |
echo '${{ secrets.FIREBASE_CREDS }}' > cred.json | |
working-directory: backend/ | |
- name: Create Secrets File | |
run: | | |
cat cred.json | |
working-directory: backend/ | |
- name: Run Docker Container | |
run: | | |
docker run -v $(pwd)/cred.json:/home/seluser/cred.json couillard:${{ github.sha }} | |
working-directory: backend/ |