Skip to content

now created action

now created action #1

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-docker-action@v2
- name: Build Docker Image
run: |
docker build -t couillard:${{ github.sha }} .
working-directory: backend/
- name: Create Secrets File
run: |
echo "${{ secrets.AWS_CD_ROLE_ARN }}" > 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/