From 12b5094339882285b714fe70d063081d0c3262b3 Mon Sep 17 00:00:00 2001 From: lisa Date: Thu, 21 Jan 2021 17:11:11 -0800 Subject: [PATCH] Update gh action docker build command --- .github/workflows/build-and-publish.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build-and-publish.yml b/.github/workflows/build-and-publish.yml index 2ef78c3..d7638ef 100644 --- a/.github/workflows/build-and-publish.yml +++ b/.github/workflows/build-and-publish.yml @@ -3,7 +3,7 @@ name: Docker Image Build and Publish on: push: tags: - - 'v[0-9]+.[0-9]+.[0-9]+' + - '[0-9]+.[0-9]+.[0-9]+' jobs: @@ -18,6 +18,6 @@ jobs: REPO: signalsciences/sigsci-nginx-ingress-controller run: | TAG=$(echo ${GITHUB_REF} | sed -e "s/refs\/tags\///g") - docker build . --file Dockerfile --build-arg NGINX_INGRESS_VERSION=${TAG} --tag ${REPO}:${TAG} + docker build . --file Dockerfile --build-arg NGINX_INGRESS_VERSION=v${TAG} --tag ${REPO}:${TAG} echo ${{ secrets.DOCKER_PASSWORD }} | docker login -u ${{ secrets.DOCKER_USERNAME }} --password-stdin docker push ${REPO}:${TAG}