CI: build container with version and latest tags
All checks were successful
/ test (push) Successful in 25s
/ build (push) Successful in 7s

This commit is contained in:
phil 2024-12-06 20:14:42 +01:00
parent ed6c70e1a9
commit 53f935b916

View file

@ -94,27 +94,19 @@ jobs:
image: treetrail-backend
oci: true
labels: treetrail-backend
tags: ${{ steps.version.outputs.version }}
tags: latest ${{ steps.version.outputs.version }}
containerfiles: |
./Containerfile
build-args: |
APP_VERSION=${{ steps.version.outputs.version }}
- name: Push the image to the registry (version tag)
- name: Push the image to the registry
if: fromJSON(steps.builder.outputs.run)
uses: actions/push-to-registry@v2
with:
registry: "docker://${{ vars.REGISTRY }}/${{ vars.ORGANISATION }}"
image: treetrail-backend
tags: ${{ steps.version.outputs.version }}
- name: Push the image to the registry (latest tag)
if: fromJSON(steps.builder.outputs.run)
uses: actions/push-to-registry@v2
with:
registry: "docker://${{ vars.REGISTRY }}/${{ vars.ORGANISATION }}"
image: treetrail-backend
tags: latest
tags: latest ${{ steps.version.outputs.version }}
- name: Install uv
uses: astral-sh/setup-uv@v4