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

fix: Docker image tag suffixes #32

Merged
merged 2 commits into from
Sep 9, 2022
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
16 changes: 10 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -105,8 +105,11 @@ jobs:
uses: docker/metadata-action@v4
with:
images: registry.digitalocean.com/${{ env.IMAGE_NAME }}
flavor: |
latest=auto
prefix=${{ steps.set-network.outputs.NETWORK_NAME }}-,onlatest=true
tags: |
type=semver,pattern={{version}},suffix=-${{ steps.set-network.outputs.NETWORK_NAME }},value=${{ needs.release-binary.outputs.VERSION }}
type=semver,pattern={{version}},value=${{ needs.release-binary.outputs.VERSION }}
labels: |
org.opencontainers.image.title="BDJuno for cheqd network"
org.opencontainers.image.description="BDJuno for cheqd network"
Expand All @@ -126,8 +129,7 @@ jobs:
labels: ${{ steps.meta.outputs.labels }}

- name: Push BDJuno image
run: |
docker push registry.digitalocean.com/${{ env.IMAGE_NAME }}:${{ steps.meta.outputs.tags }}
run: docker image push --all-tags registry.digitalocean.com/${{ env.IMAGE_NAME }}

release-hasuracli:
name: "Hasura CLI Docker Image"
Expand Down Expand Up @@ -165,8 +167,11 @@ jobs:
uses: docker/metadata-action@v4
with:
images: registry.digitalocean.com/cheqd/hasuracli
flavor: |
latest=auto
prefix=${{ steps.set-network.outputs.NETWORK_NAME }}-,onlatest=true
tags: |
type=semver,pattern={{version}},suffix=-${{ steps.set-network.outputs.NETWORK_NAME }},value=${{ needs.release-binary.outputs.VERSION }}
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"
Expand All @@ -186,5 +191,4 @@ jobs:
labels: ${{ steps.meta.outputs.labels }}

- name: Push Hasura CLI image
run: |
docker push registry.digitalocean.com/cheqd/hasuracli:${{ steps.meta.outputs.tags }}
run: docker image push --all-tags registry.digitalocean.com/cheqd/hasuracli