Skip to content

need to use localhost to access db from backend for host mode networking #26

need to use localhost to access db from backend for host mode networking

need to use localhost to access db from backend for host mode networking #26

Workflow file for this run

name: Build and Push Docker images
on:
push:
branches:
- main
pull_request:
branches:
- main
permissions:
contents: read
packages: write
jobs:
build-and-push:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: copy env file
run: cp .env.example .env
- name: Build and push Docker images
run: |
docker-compose --env-file build
docker-compose --env-file push
- name: Cleanup
if: always()
run: docker logout