Updaet config for Railway Private Networking security. #6
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 | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
build_and_publish: | |
runs-on: ubuntu-latest # Specifies the operating system environment | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v2 | |
- name: Build and push the image | |
run: | | |
echo ${{ secrets.GH_PAT }} | docker login --username yuting1214 --password-stdin ghcr.io | |
docker build . -t ghcr.io/yuting1214/fastapi-chat-ghcr:latest | |
docker push ghcr.io/yuting1214/fastapi-chat-ghcr:latest |