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

build: Fix network-specific Docker image tagging #31

Merged
merged 4 commits into from
Sep 8, 2022
Merged
Show file tree
Hide file tree
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
19 changes: 11 additions & 8 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -107,8 +107,8 @@ jobs:
images: registry.digitalocean.com/${{ env.IMAGE_NAME }}
flavor: |
latest=auto
prefix=${{ steps.set-network.outputs.NETWORK_NAME }}
tags: |
${{ steps.set-network.outputs.NETWORK_NAME }}-latest
type=semver,pattern={{version}},value=${{ needs.release-binary.outputs.VERSION }}
labels: |
org.opencontainers.image.title="BDJuno for cheqd network"
Expand All @@ -130,15 +130,12 @@ jobs:

- name: Push BDJuno image
run: |
docker push registry.digitalocean.com/${{ env.IMAGE_NAME }}:${{ steps.set-network.outputs.NETWORK_NAME }}-latest
docker push registry.digitalocean.com/${{ env.IMAGE_NAME }}:${{ needs.release-binary.outputs.VERSION }}
docker push registry.digitalocean.com/${{ env.IMAGE_NAME }}:${{ steps.meta.outputs.tags }}

release-hasuracli:
name: "Hasura CLI Docker Image"
runs-on: ubuntu-latest
env:
IMAGE_NAME: ${{ github.repository }}
COMMIT_SHA: ${{ github.sha }}
needs: release-binary

steps:
- uses: actions/checkout@v3
Expand Down Expand Up @@ -171,9 +168,15 @@ jobs:
uses: docker/metadata-action@v4
with:
images: registry.digitalocean.com/cheqd/hasuracli
flavor: |
latest=auto
prefix=${{ steps.set-network.outputs.NETWORK_NAME }}
tags: |
${{ steps.set-network.outputs.NETWORK_NAME }}-latest
type=semver,pattern={{version}},value=${{ needs.release-binary.outputs.VERSION }}
labels: |
org.opencontainers.image.title="Hasura CLI for BDJuno"
org.opencontainers.image.description="Standalone Hasura CLI for cheqd network BDJuno configuration"
org.opencontainers.image.source="https://github.com/cheqd/bdjuno"
org.opencontainers.image.vendor="Cheqd Foundation Limited"
org.opencontainers.image.created={{date 'dddd, MMMM Do YYYY, h:mm:ss a'}}
org.opencontainers.image.documentation="https://docs.cheqd.io/node"
Expand All @@ -190,4 +193,4 @@ jobs:

- name: Push Hasura CLI image
run: |
docker push registry.digitalocean.com/cheqd/hasuracli:${{ steps.set-network.outputs.NETWORK_NAME }}-latest
docker push registry.digitalocean.com/cheqd/hasuracli:${{ steps.meta.outputs.tags }}
2 changes: 1 addition & 1 deletion .goreleaser.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
project_name: bdjuno
project_name: cheqd-bdjuno

env:
- GO111MODULE=on
Expand Down