From fa55ba5ef0ce0cc620ad5499df4ef9d5d14b13da Mon Sep 17 00:00:00 2001 From: Jens Langhammer Date: Tue, 31 Dec 2019 13:40:24 +0100 Subject: [PATCH] actions: since actions has no easy way to get tags, hardcode version in ci and bump with bumpversion --- .bumpversion.cfg | 4 ++-- .github/workflows/ci.yml | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.bumpversion.cfg b/.bumpversion.cfg index d1a6d96a4..f15639b45 100644 --- a/.bumpversion.cfg +++ b/.bumpversion.cfg @@ -10,7 +10,7 @@ tag_name = version/{new_version} [bumpversion:part:release] optional_value = stable first_value = beta -values = +values = alpha beta stable @@ -19,7 +19,7 @@ values = [bumpversion:file:helm/Chart.yaml] -[bumpversion:file:.gitlab-ci.yml] +[bumpversion:file:.github/workflows/ci.yml] [bumpversion:file:passbook/__init__.py] diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c2f16dc74..dc908750d 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -143,9 +143,9 @@ jobs: DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }} run: docker login -u $DOCKER_USERNAME -p $DOCKER_PASSWORD - name: Building Docker Image - run: docker build --no-cache -t beryju/passbook:${{ github.sha }} -f Dockerfile . + run: docker build --no-cache -t beryju/passbook:0.7.5-beta -f Dockerfile . - name: Push Docker Container to Registry - run: docker push beryju/passbook:${{ github.sha }} + run: docker push beryju/passbook:0.7.5-beta build-static: needs: - migrations @@ -171,10 +171,10 @@ jobs: run: docker build --no-cache --network=$(docker network ls | grep github | awk '{print $1}') - -t beryju/passbook-static:${{ github.sha }} + -t beryju/passbook-static:0.7.5-beta -f static.Dockerfile . - name: Push Docker Container to Registry - run: docker push beryju/passbook-static:${{ github.sha }} + run: docker push beryju/passbook-static:0.7.5-beta package-helm: needs: - build-server