Skip to content

Commit

Permalink
feat: Set nightly and latest tags when publishing to DockerHub (e…
Browse files Browse the repository at this point in the history
…clipse-zenoh#129)

* feat: Set `nightly` and `latest` tags when publishing to DockerHub

* chore: Remove release-crates-ghcr workflow

* fix: Always push the Docker image
  • Loading branch information
fuzzypixelz authored May 7, 2024
1 parent e3a722f commit abe1a66
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 113 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/release-crates-dockerhub.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ on:
platforms:
type: string
required: true
tags:
image:
type: string
required: true
licenses:
Expand Down Expand Up @@ -57,7 +57,7 @@ on:
platforms:
type: string
required: true
tags:
image:
type: string
required: true
licenses:
Expand Down Expand Up @@ -99,7 +99,7 @@ jobs:
files: ${{ inputs.files }}
binary: ${{ inputs.binary }}
platforms: ${{ inputs.platforms }}
tags: ${{ inputs.tags }}
image: ${{ inputs.image }}
licenses: ${{ inputs.licenses }}
username: ${{ secrets.DOCKER_COM_USERNAME }}
password: ${{ secrets.DOCKER_COM_PASSWORD }}
106 changes: 0 additions & 106 deletions .github/workflows/release-crates-ghcr.yml

This file was deleted.

10 changes: 6 additions & 4 deletions publish-crates-docker/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ inputs:
files:
description: Files to be copied into the image
required: true
tags:
description: List of Docker tags
image:
description: Name of Docker image
required: true
licenses:
description: List of licenses
Expand Down Expand Up @@ -72,8 +72,10 @@ runs:
context: ${{ steps.prepare.outputs.context }}
file: ${{ github.action_path }}/Dockerfile
platforms: ${{ inputs.platforms }}
push: ${{ inputs.live-run }}
tags: ${{ inputs.tags }}
push: true
tags: |
${{ inputs.image }}:${{ version }}
${{ inputs.image }}:${{ inputs.live-run == 'true' && 'latest' || 'nightly' }}
build-args: |
BINARY=${{ inputs.binary }}
labels: |
Expand Down

0 comments on commit abe1a66

Please sign in to comment.