Skip to content

Commit

Permalink
fix app_version for production
Browse files Browse the repository at this point in the history
  • Loading branch information
mike1pol committed Feb 11, 2020
1 parent 0481b80 commit f827019
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ jobs:
DOCKER_USERNAME: ${{ secrets.docker_user }}
DOCKER_PASSWORD: ${{ secrets.docker_password }}
run: |
export APP_VERSION=$(sed 's/refs\/tags\///g' <<< $APP_VERSION)
docker login docker.pkg.github.com -u ${DOCKER_USERNAME} -p "${DOCKER_PASSWORD}"
docker build . --file Dockerfile --tag $APP_IMAGE:$APP_VERSION
docker push $APP_IMAGE:$APP_VERSION
Expand All @@ -56,6 +57,7 @@ jobs:
APP_VERSION: ${{ github.ref }}
KUBECONFIG: ${{ secrets.kubeconfig }}
run: |
export APP_VERSION=$(sed 's/refs\/tags\///g' <<< $APP_VERSION)
echo $KUBECONFIG | base64 -d > ./kubeconfig.yml
curl -L https://github.com/niquola/envtpl/releases/download/0.0.3/envtpl.linux > envtpl
chmod +x envtpl
Expand Down

0 comments on commit f827019

Please sign in to comment.