Skip to content

Commit

Permalink
Update gh action docker build command
Browse files Browse the repository at this point in the history
  • Loading branch information
lisa committed Jan 22, 2021
1 parent aedf7fc commit 12b5094
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build-and-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:

Expand All @@ -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}

0 comments on commit 12b5094

Please sign in to comment.