Skip to content

Merge pull request #115 from LiamMorrow/renovate/all-minor-patch #27

Merge pull request #115 from LiamMorrow/renovate/all-minor-patch

Merge pull request #115 from LiamMorrow/renovate/all-minor-patch #27

Workflow file for this run

name: Upload site as docker image to ghcr.io
on:
push:
branches:
- main
env:
REGISTRY: ghcr.io
IMAGE_NAME: ${{ github.repository }}
jobs:
upload:
permissions:
contents: read
packages: write
# This is used to complete the identity challenge
# with sigstore/fulcio when running outside of PRs.
id-token: write
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: 8.0.x
- name: Log into registry ${{ env.REGISTRY }}
uses: docker/login-action@v3
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build image
run: dotnet publish --os linux --arch x64 /t:PublishContainer -c Release
working-directory: LiftLog.Backend
- name: Tag image
run: docker tag liftlog-api:latest ghcr.io/liammorrow/liftlog:api
- name: Push image
run: docker push ghcr.io/liammorrow/liftlog:api