Set proper version build args and make docker build depenedant on release
This commit is contained in:
parent
f054507bfd
commit
0b03e6108c
5
.github/workflows/release.yml
vendored
5
.github/workflows/release.yml
vendored
@ -74,6 +74,7 @@ jobs:
|
||||
runs-on: ubuntu-latest
|
||||
needs:
|
||||
- test
|
||||
- release-linux
|
||||
env:
|
||||
BUILD_OS: linux
|
||||
BUILD_ARCH: amd64
|
||||
@ -85,7 +86,9 @@ jobs:
|
||||
with:
|
||||
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
||||
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
||||
- run: docker build --build-arg "BUILD_VERSION=${BUILD_VERSION}" -t cortezaproject/corteza-server:${{ env.BUILD_VERSION }} .
|
||||
- run: |
|
||||
docker build --build-arg "VERSION=${{ env.BUILD_VERSION }}" \
|
||||
-t cortezaproject/corteza-server:${{ env.BUILD_VERSION }} .
|
||||
if: ${{ !env.ACT }}
|
||||
- run: docker push cortezaproject/corteza-server:${{ env.BUILD_VERSION }}
|
||||
if: ${{ !env.ACT }}
|
||||
|
||||
3
.github/workflows/snapshot.yml
vendored
3
.github/workflows/snapshot.yml
vendored
@ -52,7 +52,8 @@ jobs:
|
||||
username: ${{ secrets.GH_USERNAME }}
|
||||
password: ${{ secrets.GH_TOKEN }}
|
||||
- run: |
|
||||
docker build -t ghcr.io/cortezaproject/corteza-server:${{ env.BUILD_VERSION_SHA }} \
|
||||
docker build --build-arg "VERSION=${{ env.BUILD_VERSION }}" \
|
||||
-t ghcr.io/cortezaproject/corteza-server:${{ env.BUILD_VERSION_SHA }} \
|
||||
-t ghcr.io/cortezaproject/corteza-server:${{ env.BUILD_VERSION_REF }} .
|
||||
if: ${{ !env.ACT }}
|
||||
- run: docker push ghcr.io/cortezaproject/corteza-server:${{ env.BUILD_VERSION_SHA }}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user