-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4 from CMCC-Foundation/update_workflows
Update workflows
- Loading branch information
Showing
8 changed files
with
110 additions
and
44 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
name: Build on release a geokube Docker image and push to the geokube container registry | ||
|
||
on: | ||
push: | ||
tags: | ||
- 'v*' | ||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Get release tag | ||
run: echo "RELEASE_TAG=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV | ||
- name: Set up Python | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: "3.9" | ||
- name: Install WHEEL tool | ||
run: pip install wheel | ||
- name: Build WHEEL file | ||
run: python setup.py bdist_wheel | ||
- name: Login to Scaleway Container Registry | ||
uses: docker/login-action@v2 | ||
with: | ||
username: nologin | ||
password: ${{ secrets.SCALEWAY_PASSWORD }} | ||
registry: ${{ vars.GEOKUBE_REGISTRY }} | ||
- name: Set up Docker Buildx | ||
uses: docker/build-push-action@v4 | ||
with: | ||
context: . | ||
file: ./Dockerfile | ||
push: true | ||
tags: | | ||
${{ vars.GEOKUBE_REGISTRY }}/geokube:${{ env.TAG }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
name: Publish Kit4DL package to PyPI | ||
|
||
on: | ||
release: | ||
types: [published] | ||
workflow_dispatch: | ||
|
||
jobs: | ||
build-and-publish: | ||
name: Build Kit4DL and publish to PyPI | ||
strategy: | ||
matrix: | ||
python-version: ["3.9"] | ||
os: [ubuntu-latest] | ||
runs-on: ${{ matrix.os }} | ||
environment: release | ||
permissions: | ||
id-token: write | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
- name: Install build tool | ||
run: python3 -m pip install build --user | ||
- name: Build wheels | ||
run: python -m build --sdist --wheel --outdir=dist/ . | ||
- name: Publish package distributions to PyPI | ||
uses: pypa/gh-action-pypi-publish@release/v1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
name: Publish geokube package to TestPyPI | ||
|
||
on: | ||
release: | ||
types: [prereleased] | ||
workflow_dispatch: | ||
|
||
jobs: | ||
build-and-publish: | ||
name: Build geokube and publish to TestPyPI | ||
strategy: | ||
matrix: | ||
python-version: ["3.9"] | ||
os: [ubuntu-latest] | ||
# environment: | ||
# name: testpypi | ||
# url: https://test.pypi.org/p/geokube | ||
permissions: | ||
id-token: write | ||
runs-on: ${{ matrix.os }} | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
- name: Install build tool | ||
run: python3 -m pip install build --user | ||
- name: Build wheels | ||
run: python -m build --sdist --wheel --outdir=dist/ . | ||
- name: Publish package distributions to TestPyPI | ||
uses: pypa/gh-action-pypi-publish@release/v1 | ||
with: | ||
repository-url: https://test.pypi.org/legacy/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
__version__ = "0.2a0" | ||
__version__ = "0.2.0" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters