actions: since actions has no easy way to get tags, hardcode version in ci and bump with bumpversion
This commit is contained in:
parent
766518ee0e
commit
fa55ba5ef0
|
@ -19,7 +19,7 @@ values =
|
||||||
|
|
||||||
[bumpversion:file:helm/Chart.yaml]
|
[bumpversion:file:helm/Chart.yaml]
|
||||||
|
|
||||||
[bumpversion:file:.gitlab-ci.yml]
|
[bumpversion:file:.github/workflows/ci.yml]
|
||||||
|
|
||||||
[bumpversion:file:passbook/__init__.py]
|
[bumpversion:file:passbook/__init__.py]
|
||||||
|
|
||||||
|
|
8
.github/workflows/ci.yml
vendored
8
.github/workflows/ci.yml
vendored
|
@ -143,9 +143,9 @@ jobs:
|
||||||
DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }}
|
DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }}
|
||||||
run: docker login -u $DOCKER_USERNAME -p $DOCKER_PASSWORD
|
run: docker login -u $DOCKER_USERNAME -p $DOCKER_PASSWORD
|
||||||
- name: Building Docker Image
|
- 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
|
- name: Push Docker Container to Registry
|
||||||
run: docker push beryju/passbook:${{ github.sha }}
|
run: docker push beryju/passbook:0.7.5-beta
|
||||||
build-static:
|
build-static:
|
||||||
needs:
|
needs:
|
||||||
- migrations
|
- migrations
|
||||||
|
@ -171,10 +171,10 @@ jobs:
|
||||||
run: docker build
|
run: docker build
|
||||||
--no-cache
|
--no-cache
|
||||||
--network=$(docker network ls | grep github | awk '{print $1}')
|
--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 .
|
-f static.Dockerfile .
|
||||||
- name: Push Docker Container to Registry
|
- 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:
|
package-helm:
|
||||||
needs:
|
needs:
|
||||||
- build-server
|
- build-server
|
||||||
|
|
Reference in a new issue