From 84193004528e24ecec8d8175f782ba90cf4dd11b Mon Sep 17 00:00:00 2001 From: Mariana Alves Date: Fri, 4 Aug 2023 15:30:28 +0100 Subject: [PATCH] Add version input to docker image action --- .github/workflows/docker-ci.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/docker-ci.yml b/.github/workflows/docker-ci.yml index 9ea451d..65c1983 100644 --- a/.github/workflows/docker-ci.yml +++ b/.github/workflows/docker-ci.yml @@ -25,6 +25,7 @@ jobs: public: true public_image: ce/movai-base-noetic deploy: ${{ contains(github.ref, 'refs/heads/main') || contains(github.ref, 'refs/tags/v')}} + version: ${GITHUB_REF##*/} push_latest: ${{ contains(github.ref, 'refs/heads/main') || contains(github.ref, 'refs/tags/v') }} snyk_check: true platforms: linux/amd64, linux/arm/v7, linux/arm64 @@ -44,6 +45,7 @@ jobs: public: true public_image: ce/movai-base-bionic deploy: ${{ contains(github.ref, 'refs/heads/main') || contains(github.ref, 'refs/tags/v')}} + version: ${GITHUB_REF##*/} push_latest: ${{ contains(github.ref, 'refs/heads/main') || contains(github.ref, 'refs/tags/v') }} snyk_check: true platforms: linux/amd64, linux/arm/v7, linux/arm64 @@ -63,6 +65,7 @@ jobs: public: true public_image: ce/movai-base-focal deploy: ${{ contains(github.ref, 'refs/heads/main') || contains(github.ref, 'refs/tags/v')}} + version: ${GITHUB_REF##*/} push_latest: ${{ contains(github.ref, 'refs/heads/main') || contains(github.ref, 'refs/tags/v') }} snyk_check: true platforms: linux/amd64, linux/arm/v7, linux/arm64