Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci(publish): make docker hub publish work #643

Merged
merged 1 commit into from
May 21, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
50 changes: 25 additions & 25 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
id: docker_metadata
uses: docker/metadata-action@v5
with:
images: ghcr.io/${{ github.repository }}
images: ghcr.io/${{ github.repository }},axoneprotocol/axoned
tags: |
type=raw,enable=${{ endsWith(github.ref, github.event.repository.default_branch) }},value=nightly
type=semver,pattern={{version}}
Expand Down Expand Up @@ -54,30 +54,30 @@ jobs:
tags: ${{ steps.docker_metadata.outputs.tags }}
labels: ${{ steps.docker_metadata.outputs.labels }}

# dockerhub-description:
# runs-on: ubuntu-22.04
# steps:
# - name: Check out repository
# uses: actions/checkout@v4
# with:
# fetch-depth: 2
#
# - name: Find change in readme file
# id: readme-change
# uses: tj-actions/[email protected]
# with:
# files: |
# README.md
#
# - name: Docker Hub Description
# if: steps.readme-change.outputs.any_changed == 'true'
# uses: peter-evans/dockerhub-description@v4
# with:
# username: ${{ secrets.DOCKER_HUB_REGISTRY_ID }}
# description: Docker image for https://github.com/okp4/okp4d
# password: ${{ secrets.DOCKER_HUB_REGISTRY_TOKEN }}
# repository: okp4/okp4d
# readme-filepath: README.md
dockerhub-description:
runs-on: ubuntu-22.04
steps:
- name: Check out repository
uses: actions/checkout@v4
with:
fetch-depth: 2

- name: Find change in readme file
id: readme-change
uses: tj-actions/[email protected]
with:
files: |
README.md

- name: Docker Hub Description
if: steps.readme-change.outputs.any_changed == 'true'
uses: peter-evans/dockerhub-description@v4
with:
username: ${{ secrets.DOCKER_HUB_REGISTRY_ID }}
description: Docker image for https://github.com/{{ .repository }}
password: ${{ secrets.DOCKER_HUB_REGISTRY_TOKEN }}
repository: axoneprotocol/axoned
readme-filepath: README.md

publish-buf-proto:
runs-on: ubuntu-20.04
Expand Down
Loading