Skip to content

updated action

updated action #7

Workflow file for this run

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/