Skip to content

Commit

Permalink
Update build scripts.
Browse files Browse the repository at this point in the history
  • Loading branch information
documati committed Jul 21, 2023
1 parent 89ae37a commit 3f6aae1
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 16 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/main-docker-image-amd64.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ name: Docker Image CI for develop

on:
push:
branches: [ "main" ]
tags: [ "*" ]
pull_request:
branches: [ "main" ]
Expand Down Expand Up @@ -39,7 +40,7 @@ jobs:

- uses: juliangruber/read-file-action@v1
name: Read VERSION
id: readversion
id: read_version
with:
path: ./VERSION

Expand All @@ -49,7 +50,7 @@ jobs:
name: Build and Push Docker Image
with:
image: dqops/dqo
tags: $(date +%s),${{ steps.readversion.outputs.content }},latest
tags: $(date +%s),${{ steps.read_version.outputs.content }},latest
enableBuildKit: true
multiPlatform: true
platform: ${{ matrix.platform }}
Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/main-docker-image-arm64.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
name: Docker Image CI for arm64
on:
push:
branches: [ "main" ]
tags: [ "*" ]
pull_request:
branches: [ "main" ]
Expand All @@ -19,7 +20,7 @@ jobs:

- uses: juliangruber/read-file-action@v1
name: Read VERSION
id: readversion
id: read_version
with:
path: ./VERSION

Expand All @@ -29,7 +30,7 @@ jobs:
name: Build and Push Docker Image
with:
image: dqops/dqo
tags: $(date +%s),${{ steps.readversion.outputs.content }},latest
tags: $(date +%s),${{ steps.read_version.outputs.content }},latest
enableBuildKit: true
multiPlatform: true
platform: ${{ matrix.platform }}
Expand Down
20 changes: 9 additions & 11 deletions .github/workflows/main-publish-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ name: Build and publish the release to GitHub releases and PyPi

on:
push:
branches: [ "main" ]
tags: [ "*" ]
pull_request:
branches: [ "main" ]
Expand All @@ -28,7 +29,7 @@ jobs:

- uses: juliangruber/read-file-action@v1
name: Read VERSION
id: readversion
id: read_version
with:
path: ./VERSION

Expand All @@ -38,8 +39,8 @@ jobs:
with:
draft: false
prerelease: false
release_name: ${{ steps.readversion.outputs.content }}
tag_name: ${{ steps.readversion.outputs.content }}
release_name: ${{ steps.read_version.outputs.content }}
tag_name: ${{ steps.read_version.outputs.content }}
body_path: CHANGELOG.md
env:
GITHUB_TOKEN: ${{ github.token }}
Expand All @@ -50,24 +51,21 @@ jobs:
GITHUB_TOKEN: ${{ github.token }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./distribution/target/dqo-distribution-${{steps.readversion.outputs.content}}-bin.zip
asset_name: dqo-distribution-${{steps.readversion.outputs.content}}-bin.zip
asset_path: ./distribution/target/dqo-distribution-${{steps.read_version.outputs.content}}-bin.zip
asset_name: dqo-distribution-${{steps.read_version.outputs.content}}-bin.zip
asset_content_type: application/zip

- name: Install python dependencies
working-directory: ./distribution/python
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
pip install -r ./distribution/python/requirements.txt
- name: Build PyPi package
working-directory: ./distribution/python
run: |
python -m build
python -m build ./distribution/python
- name: Publish PyPi package
uses: pypa/gh-action-pypi-publish@27b31702a0e7fc50959f5ad993c78deac1bdfc29
working-directory: ./distribution/python
uses: pypa/gh-action-pypi-publish@release/v1
with:
user: __token__
password: ${{ secrets.PYPI_TOKEN }}
2 changes: 1 addition & 1 deletion .github/workflows/mvn-build.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Docker Image CI for develop
name: Build code with Maven

on:
push:
Expand Down

0 comments on commit 3f6aae1

Please sign in to comment.