Skip to content

feat: add publish pipeline #1

feat: add publish pipeline

feat: add publish pipeline #1

name: Publish Container Packages
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Restore tool
run: dotnet tool restore
- name: Docker Login
uses: docker/[email protected]
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build the Docker image
run: |
cd SecondDimensionWatcherReDive.AppHost
dotnet aspirate build --container-image-tag=$(git rev-parse --short HEAD) --disable-secrets --non-interactive