This repository has been archived by the owner on Dec 31, 2023. It is now read-only.
Update profio-api.yml #25
Workflow file for this run
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: Publish Profio Api | |
on: | |
push: | |
branches: | |
- main | |
- stg | |
paths: | |
- 'apps/Profio.Api/**' | |
- 'libs/**' | |
- '.github/workflows/profio-api.yml' | |
pull_request: | |
branches: [ stg ] | |
permissions: read-all | |
jobs: | |
build-docker: | |
runs-on: ubuntu-latest | |
permissions: | |
packages: write | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Login to GitHub Container Registry | |
uses: docker/login-action@v1 | |
with: | |
registry: ghcr.io | |
username: ${{ github.repository_owner }} | |
password: ${{ secrets.TOKEN }} | |
- name: Build the profio-api image | |
run: | | |
echo ${{ github.repository_owner }} | |
echo ${{ secrets.TOKEN }} | |
docker build -f apps/Profio.Api/Dockerfile . --tag ghcr.io/hutechcj/profio-api:latest | |
docker push ghcr.io/hutechcj/profio-api:latest |