Merge pull request #178 from luxfi/backend #2
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 Image CI for GHCR for Bridge Server | |
on: | |
push: | |
branches: | |
- main | |
paths: | |
- "apps/server**" # Only trigger the workflow for changes in the apps/server subfoler | |
jobs: | |
build_and_publish: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@main | |
- name: Set up Docker Buildx | |
uses: docker/setup-buildx-action@v3 | |
- name: Log in to GitHub Container Registry | |
run: | | |
docker login --username venuswhispers --password ${{ secrets.GH_PAT }} ghcr.io | |
- name: Build and push Docker images | |
run: | | |
cd apps/server | |
docker build -f Dockerfile -t ghcr.io/luxfi/bridge/server:latest . | |
docker push ghcr.io/luxfi/bridge/server:latest |