azure-pipelines.yml: push retro68 release image to GHCR

This release image contains the basic toolchain that can be used for building
projects without having to build Retro68 locally, including integration into a
CI pipeline.
This commit is contained in:
Mark Cave-Ayland 2022-10-21 22:14:14 +01:00 committed by Wolfgang Thaller
parent 3a4468b270
commit de06b24fd7
1 changed files with 19 additions and 0 deletions

View File

@ -17,6 +17,13 @@ jobs:
tags: latest
arguments: --target build
displayName: 'Build'
- task: Docker@2
inputs:
command: build
repository: ghcr.io/mcayland/retro68
tags: latest
arguments: --target release
displayName: 'Build release'
- script: |
docker run --name retro68-build --rm -i -d ghcr.io/mcayland/retro68-build:latest
docker exec -i retro68-build /bin/bash <<"EOF"
@ -35,3 +42,15 @@ jobs:
testResultsFormat: 'CTest'
testResultsFiles: build/Testing/**/*.xml
buildPlatform: 'x86_64-linux'
- task: Docker@2
inputs:
command: login
containerRegistry: mcayland-github-docker
displayName: Login to GHCR
- task: Docker@2
inputs:
containerRegistry: mcayland-github-docker
repository: mcayland/retro68
command: push
tags: latest
displayName: 'Push release to GHCR'