kopia lustrzana https://github.com/OpenDroneMap/NodeODM
Use new metadata action to generate tags
rodzic
0171bc9572
commit
5411a5fdee
|
@ -42,11 +42,14 @@ jobs:
|
||||||
# Use the repository information of the checked-out code to format docker tags
|
# Use the repository information of the checked-out code to format docker tags
|
||||||
- name: Docker meta
|
- name: Docker meta
|
||||||
id: docker_meta
|
id: docker_meta
|
||||||
uses: crazy-max/ghaction-docker-meta@v1
|
uses: docker/metadata-action@v5
|
||||||
with:
|
with:
|
||||||
images: opendronemap/nodeodm
|
images: |
|
||||||
tag-semver: |
|
opendronemap/nodeodm
|
||||||
{{version}}
|
# semver tag is only generated for the cpu version
|
||||||
|
tags: |
|
||||||
|
${{ matrix.variant.tag == 'latest' && 'type=semver,pattern={{version}}' || '' }}
|
||||||
|
type=raw,value=${{ matrix.variant.tag }}
|
||||||
- name: Build and export Docker image
|
- name: Build and export Docker image
|
||||||
id: docker_build
|
id: docker_build
|
||||||
uses: docker/build-push-action@v6
|
uses: docker/build-push-action@v6
|
||||||
|
@ -57,9 +60,8 @@ jobs:
|
||||||
cache-to: type=gha,mode=max
|
cache-to: type=gha,mode=max
|
||||||
# make the image available to the docker command
|
# make the image available to the docker command
|
||||||
load: true
|
load: true
|
||||||
tags: |
|
labels: ${{ steps.docker_meta.outputs.labels }}
|
||||||
${{ matrix.variant.tag == 'latest' && steps.docker_meta.outputs.tags || '' }}
|
tags: ${{ steps.docker_meta.outputs.tags }}
|
||||||
opendronemap/nodeodm:${{ matrix.variant.tag }}
|
|
||||||
- name: Test Powercycle
|
- name: Test Powercycle
|
||||||
run: |
|
run: |
|
||||||
docker run --rm ${{ steps.docker_build.outputs.imageid }} --powercycle
|
docker run --rm ${{ steps.docker_build.outputs.imageid }} --powercycle
|
||||||
|
@ -71,6 +73,5 @@ jobs:
|
||||||
platforms: ${{ matrix.variant.platforms }}
|
platforms: ${{ matrix.variant.platforms }}
|
||||||
cache-from: type=gha
|
cache-from: type=gha
|
||||||
push: true
|
push: true
|
||||||
tags: |
|
labels: ${{ steps.docker_meta.outputs.labels }}
|
||||||
${{ matrix.variant.tag == 'latest' && steps.docker_meta.outputs.tags || '' }}
|
tags: ${{ steps.docker_meta.outputs.tags }}
|
||||||
opendronemap/nodeodm:${{ matrix.variant.tag }}
|
|
||||||
|
|
Ładowanie…
Reference in New Issue