Skip to content

updated action

updated action #3

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:
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 couillard:${{ github.sha }}
docker run -v ${PWD}/cred.json:/home/seluser/cred.json couillard
working-directory: backend/