Compare commits
No commits in common. "ffd3e99eccd6fab3563c7d2132d21b0f4d6f09ce" and "425aaf9dc06732f0ca989d5880416d741bd65346" have entirely different histories.
ffd3e99ecc
...
425aaf9dc0
3 changed files with 11 additions and 42 deletions
|
@ -72,6 +72,16 @@ jobs:
|
||||||
VERSION: ${{ steps.version.outputs.version }}
|
VERSION: ${{ steps.version.outputs.version }}
|
||||||
run: sed "s/0.0.0/${VERSION}/" -i pyproject.toml
|
run: sed "s/0.0.0/${VERSION}/" -i pyproject.toml
|
||||||
|
|
||||||
|
- name: Build python package
|
||||||
|
if: fromJSON(steps.builder.outputs.run)
|
||||||
|
run: uv build --wheel
|
||||||
|
|
||||||
|
- name: Publish Python package (home)
|
||||||
|
if: fromJSON(steps.builder.outputs.run)
|
||||||
|
env:
|
||||||
|
LOCAL_PYPI_TOKEN: ${{ secrets.LOCAL_PYPI_TOKEN }}
|
||||||
|
run: uv publish --publish-url https://code.philo.ydns.eu/api/packages/philorg/pypi --token $LOCAL_PYPI_TOKEN
|
||||||
|
|
||||||
- name: Workaround for bug of podman-login
|
- name: Workaround for bug of podman-login
|
||||||
if: fromJSON(steps.builder.outputs.run)
|
if: fromJSON(steps.builder.outputs.run)
|
||||||
run: |
|
run: |
|
||||||
|
@ -107,18 +117,3 @@ jobs:
|
||||||
registry: "docker://${{ vars.REGISTRY }}/${{ vars.ORGANISATION }}"
|
registry: "docker://${{ vars.REGISTRY }}/${{ vars.ORGANISATION }}"
|
||||||
image: treetrail-backend
|
image: treetrail-backend
|
||||||
tags: ${{ steps.version.outputs.version }}
|
tags: ${{ steps.version.outputs.version }}
|
||||||
|
|
||||||
- name: Install uv
|
|
||||||
uses: astral-sh/setup-uv@4
|
|
||||||
with:
|
|
||||||
version: "0.5.5"
|
|
||||||
|
|
||||||
- name: Build python package
|
|
||||||
if: fromJSON(steps.builder.outputs.run)
|
|
||||||
run: uv build --wheel
|
|
||||||
|
|
||||||
- name: Publish Python package (home)
|
|
||||||
if: fromJSON(steps.builder.outputs.run)
|
|
||||||
env:
|
|
||||||
LOCAL_PYPI_TOKEN: ${{ secrets.LOCAL_PYPI_TOKEN }}
|
|
||||||
run: uv publish --publish-url https://code.philo.ydns.eu/api/packages/philorg/pypi --token $LOCAL_PYPI_TOKEN
|
|
||||||
|
|
|
@ -1,4 +0,0 @@
|
||||||
FROM docker.io/postgis/postgis:17-3.5-alpine
|
|
||||||
|
|
||||||
ENV POSTGRES_USER treetrail
|
|
||||||
ENV POSTGRES_PASSWORD treetrail
|
|
24
build.yaml
24
build.yaml
|
@ -13,37 +13,17 @@
|
||||||
# file: prod.yaml
|
# file: prod.yaml
|
||||||
# name: conf
|
# name: conf
|
||||||
|
|
||||||
- name: Build the database image
|
|
||||||
tags: db
|
|
||||||
containers.podman.podman_image:
|
|
||||||
name: treetrail-database
|
|
||||||
state: build
|
|
||||||
path: "{{ playbook_dir }}"
|
|
||||||
build:
|
|
||||||
format: oci
|
|
||||||
force_rm: "{{ force_rm }}"
|
|
||||||
cache: "{{ cache }}"
|
|
||||||
file: Containerfile.database
|
|
||||||
push: true
|
|
||||||
push_args:
|
|
||||||
dest: "{{ repository }}/{{ organisation }}"
|
|
||||||
|
|
||||||
- name: Using the variables
|
- name: Using the variables
|
||||||
ansible.builtin.debug:
|
ansible.builtin.debug:
|
||||||
var: force_rm
|
var: force_rm
|
||||||
|
|
||||||
- name: Get the version from git
|
- name: Get the version from git
|
||||||
tags:
|
|
||||||
- ci
|
|
||||||
- deps
|
|
||||||
- backend
|
|
||||||
command: git describe --dirty --tags
|
command: git describe --dirty --tags
|
||||||
register: version
|
register: version
|
||||||
args:
|
args:
|
||||||
chdir: "{{ playbook_dir }}"
|
chdir: "{{ playbook_dir }}"
|
||||||
|
|
||||||
- name: Build the base CI image
|
- name: Build the base CI image
|
||||||
tags: ci
|
|
||||||
containers.podman.podman_image:
|
containers.podman.podman_image:
|
||||||
name: treetrail-backend-ci
|
name: treetrail-backend-ci
|
||||||
tag: "{{ version.stdout }}"
|
tag: "{{ version.stdout }}"
|
||||||
|
@ -56,10 +36,9 @@
|
||||||
file: Containerfile.ci
|
file: Containerfile.ci
|
||||||
push: true
|
push: true
|
||||||
push_args:
|
push_args:
|
||||||
dest: "{{ repository }}/{{ organisation }}"
|
dest: "{{ repository }}/{{ organisation }}/treetrail-backend-ci"
|
||||||
|
|
||||||
- name: Build the base image, only with python dependencies
|
- name: Build the base image, only with python dependencies
|
||||||
tags: deps
|
|
||||||
containers.podman.podman_image:
|
containers.podman.podman_image:
|
||||||
name: treetrail-backend-deps
|
name: treetrail-backend-deps
|
||||||
tag: "{{ version.stdout }}"
|
tag: "{{ version.stdout }}"
|
||||||
|
@ -75,7 +54,6 @@
|
||||||
dest: "{{ repository }}/{{ organisation }}"
|
dest: "{{ repository }}/{{ organisation }}"
|
||||||
|
|
||||||
- name: Build the backend container image
|
- name: Build the backend container image
|
||||||
tags: backend
|
|
||||||
containers.podman.podman_image:
|
containers.podman.podman_image:
|
||||||
name: treetrail-backend
|
name: treetrail-backend
|
||||||
tag: "{{ version.stdout }}"
|
tag: "{{ version.stdout }}"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue