From 1f67297d9db17c54504a1849a6067d9a5cb9304d Mon Sep 17 00:00:00 2001 From: Andrew Novoselac Date: Mon, 18 Mar 2024 11:18:25 -0400 Subject: [PATCH] Update the image build action to publish the latest image to a tag with just the ruby version We want to have a versioned image, and a latest version of the image available at a tag with just the ruby version. So for example, if we release version 0.2.0 of the image for ruby 3.3.0, we will update two tags: ghcr.io/rails/devcontainer/images/ruby:0.2.0-3.3.0 ghcr.io/rails/devcontainer/images/ruby:3.3.0 --- .github/workflows/build-and-publish-images.yaml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build-and-publish-images.yaml b/.github/workflows/build-and-publish-images.yaml index 53c108f..a99ed51 100644 --- a/.github/workflows/build-and-publish-images.yaml +++ b/.github/workflows/build-and-publish-images.yaml @@ -49,6 +49,8 @@ jobs: with: imageName: ghcr.io/rails/devcontainer/images/ruby cacheFrom: ghcr.io/rails/devcontainer/images/ruby - imageTag: 0.1.0-${{ matrix.RUBY_VERSION }} + imageTag: + - 0.1.0-${{ matrix.RUBY_VERSION }} + - ${{ matrix.RUBY_VERSION }} ] subFolder: images/ruby push: always \ No newline at end of file