Skip to content

Commit

Permalink
build: Fix network-specific Docker image tagging (#31)
Browse files Browse the repository at this point in the history
* Set Docker tags for BDJuno image

* Added similar version-based tagging for Hasura CLI

* Update lint.yml

* Disable YAML linter again
  • Loading branch information
ankurdotb authored Sep 8, 2022
1 parent f8f2d5b commit 3d4d040
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 9 deletions.
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

0 comments on commit 3d4d040

Please sign in to comment.