From de06b24fd78b851b32d1aa9a76b06b75e1201df9 Mon Sep 17 00:00:00 2001 From: Mark Cave-Ayland Date: Fri, 21 Oct 2022 22:14:14 +0100 Subject: [PATCH] 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. --- azure-pipelines.yml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 47bd19e2d0..cce41dacda 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -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'