CI: build container with version and latest tags
This commit is contained in:
parent
ed6c70e1a9
commit
53f935b916
1 changed files with 3 additions and 11 deletions
|
@ -94,27 +94,19 @@ jobs:
|
||||||
image: treetrail-backend
|
image: treetrail-backend
|
||||||
oci: true
|
oci: true
|
||||||
labels: treetrail-backend
|
labels: treetrail-backend
|
||||||
tags: ${{ steps.version.outputs.version }}
|
tags: latest ${{ steps.version.outputs.version }}
|
||||||
containerfiles: |
|
containerfiles: |
|
||||||
./Containerfile
|
./Containerfile
|
||||||
build-args: |
|
build-args: |
|
||||||
APP_VERSION=${{ steps.version.outputs.version }}
|
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)
|
if: fromJSON(steps.builder.outputs.run)
|
||||||
uses: actions/push-to-registry@v2
|
uses: actions/push-to-registry@v2
|
||||||
with:
|
with:
|
||||||
registry: "docker://${{ vars.REGISTRY }}/${{ vars.ORGANISATION }}"
|
registry: "docker://${{ vars.REGISTRY }}/${{ vars.ORGANISATION }}"
|
||||||
image: treetrail-backend
|
image: treetrail-backend
|
||||||
tags: ${{ steps.version.outputs.version }}
|
tags: latest ${{ 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
|
|
||||||
|
|
||||||
- name: Install uv
|
- name: Install uv
|
||||||
uses: astral-sh/setup-uv@v4
|
uses: astral-sh/setup-uv@v4
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue