Meta action v2

This commit is contained in:
CrazyMax
2021-04-01 19:32:43 +02:00
parent 1406dbdbf5
commit ae9b70d46d
2 changed files with 18 additions and 17 deletions

View File

@@ -58,16 +58,17 @@ jobs:
fetch-depth: 0 fetch-depth: 0
- -
name: Docker meta name: Docker meta
id: docker_meta id: meta
uses: crazy-max/ghaction-docker-meta@v1 uses: crazy-max/ghaction-docker-meta@v2
with: with:
images: | images: |
${{ env.DOCKERHUB_SLUG }} ${{ env.DOCKERHUB_SLUG }}
${{ env.GHCR_SLUG }} ${{ env.GHCR_SLUG }}
tag-semver: | tags: |
{{version}} type=semver,pattern={{version}}
tag-edge: true type=ref,event=pr
label-custom: | type=edge
labels: |
org.opencontainers.image.title=Diun org.opencontainers.image.title=Diun
org.opencontainers.image.description=Docker image update notifier org.opencontainers.image.description=Docker image update notifier
org.opencontainers.image.vendor=CrazyMax org.opencontainers.image.vendor=CrazyMax
@@ -114,7 +115,7 @@ jobs:
with: with:
files: | files: |
./docker-bake.hcl ./docker-bake.hcl
${{ steps.docker_meta.outputs.bake-file }} ${{ steps.meta.outputs.bake-file }}
targets: image-all targets: image-all
push: ${{ github.event_name != 'pull_request' }} push: ${{ github.event_name != 'pull_request' }}
- -
@@ -132,13 +133,13 @@ jobs:
name: Check manifest name: Check manifest
if: github.event_name != 'pull_request' if: github.event_name != 'pull_request'
run: | run: |
docker buildx imagetools inspect ${{ env.DOCKERHUB_SLUG }}:${{ steps.docker_meta.outputs.version }} docker buildx imagetools inspect ${{ env.DOCKERHUB_SLUG }}:${{ steps.meta.outputs.version }}
docker buildx imagetools inspect ${{ env.GHCR_SLUG }}:${{ steps.docker_meta.outputs.version }} docker buildx imagetools inspect ${{ env.GHCR_SLUG }}:${{ steps.meta.outputs.version }}
- -
name: Inspect image name: Inspect image
if: github.event_name != 'pull_request' if: github.event_name != 'pull_request'
run: | run: |
docker pull ${{ env.DOCKERHUB_SLUG }}:${{ steps.docker_meta.outputs.version }} docker pull ${{ env.DOCKERHUB_SLUG }}:${{ steps.meta.outputs.version }}
docker image inspect ${{ env.DOCKERHUB_SLUG }}:${{ steps.docker_meta.outputs.version }} docker image inspect ${{ env.DOCKERHUB_SLUG }}:${{ steps.meta.outputs.version }}
docker pull ${{ env.GHCR_SLUG }}:${{ steps.docker_meta.outputs.version }} docker pull ${{ env.GHCR_SLUG }}:${{ steps.meta.outputs.version }}
docker image inspect ${{ env.GHCR_SLUG }}:${{ steps.docker_meta.outputs.version }} docker image inspect ${{ env.GHCR_SLUG }}:${{ steps.meta.outputs.version }}

View File

@@ -47,10 +47,10 @@
## 4.10.0 (2020/12/26) ## 4.10.0 (2020/12/26)
* Refactor CI and dev workflow with buildx bake (#247) * Refactor CI and dev workflow with buildx bake (#247)
* Upload artifacts * Upload artifacts
* Add `image-local` target * Add `image-local` target
* Single job for artifacts and image * Single job for artifacts and image
* Add `armv5` artifact * Add `armv5` artifact
* MQTT Reconnection Log Spam (#241) * MQTT Reconnection Log Spam (#241)
* Add Docker + File providers user guide (#239) * Add Docker + File providers user guide (#239)
* Bump github.com/alecthomas/kong from 0.2.11 to 0.2.12 (#231) * Bump github.com/alecthomas/kong from 0.2.11 to 0.2.12 (#231)