add custom check (#16) #31
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: How to use MSBuild packages to influence the tags of the image | |
on: | |
push: | |
workflow_dispatch: | |
env: | |
GITHUB_USERNAME: baronfel | |
APP_NAME: msbuild-versioning-sample | |
jobs: | |
build-an-app: | |
permissions: | |
contents: read | |
packages: write | |
runs-on: ubuntu-latest | |
steps: | |
- name: Login to ghcr.io | |
uses: docker/login-action@v3 | |
with: | |
registry: ghcr.io | |
username: ${{ github.actor }} | |
password: ${{ secrets.GITHUB_TOKEN }} | |
- name: Get the code | |
uses: actions/checkout@v4 | |
- name: Get .NET | |
uses: actions/setup-dotnet@v4 | |
- name: build the image | |
working-directory: src/msbuild-versioning-sample | |
run: | | |
dotnet publish -t:PublishContainer -p ContainerRepository=${{github.repository_owner}}/${{env.APP_NAME}} -p ContainerRegistry=ghcr.io |