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
|
||||
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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue