Skip to content

Commit

Permalink
Merge pull request #6057 from IntersectMBO/jl/ghcr-latest-tag
Browse files Browse the repository at this point in the history
GHA push latest tag, bump iohkNix
  • Loading branch information
disassembler authored Jan 7, 2025
2 parents 1774c93 + a2d2edb commit 307fdd2
Show file tree
Hide file tree
Showing 6 changed files with 31 additions and 14 deletions.
26 changes: 22 additions & 4 deletions .github/workflows/release-ghcr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -67,19 +67,37 @@ jobs:
- name: Uploading intersectmbo/cardano-node
run: |
echo "::group::Downloading from cache"
nix build --accept-flake-config --print-out-paths --builders "" --max-jobs 0 ${{ steps.flake-metadata.outputs.LOCKED_URL }}#dockerImage/node
nix build --accept-flake-config --print-out-paths --builders "" --max-jobs 0 --out-link ./result-node ${{ steps.flake-metadata.outputs.LOCKED_URL }}#dockerImage/node
echo "::endgroup::"
echo "::group::Uploading to registry"
skopeo copy docker-archive:./result docker://ghcr.io/intersectmbo/cardano-node:$GITHUB_REF_NAME
skopeo copy docker-archive:./result-node docker://ghcr.io/intersectmbo/cardano-node:$GITHUB_REF_NAME
echo "::endgroup::"
- name: Uploading intersectmbo/cardano-submit-api
run: |
echo "::group::Downloading from cache"
nix build --accept-flake-config --print-out-paths --builders "" --max-jobs 0 ${{ steps.flake-metadata.outputs.LOCKED_URL }}#dockerImage/submit-api
nix build --accept-flake-config --print-out-paths --builders "" --max-jobs 0 --out-link ./result-api ${{ steps.flake-metadata.outputs.LOCKED_URL }}#dockerImage/submit-api
echo "::endgroup::"
echo "::group::Uploading to registry"
skopeo copy docker-archive:./result docker://ghcr.io/intersectmbo/cardano-submit-api:$GITHUB_REF_NAME
skopeo copy docker-archive:./result-api docker://ghcr.io/intersectmbo/cardano-submit-api:$GITHUB_REF_NAME
echo "::endgroup::"
- name: Obtaining latest release tag
id: latest-tag
run: |
LATEST_TAG=$(gh api repos/$GITHUB_REPOSITORY/releases/latest --jq '.tag_name')
echo "LATEST_TAG=$LATEST_TAG" >> "$GITHUB_OUTPUT"
echo "Latest release tag is: $LATEST_TAG"
- name: Tagging intersectmbo container latest
if: ${{ github.event.release.tag_name == steps.latest-tag.outputs.LATEST_TAG }}
run: |
echo "::group::Tagging latest for intersectmbo/cardano-node"
skopeo copy docker-archive:./result-node docker://ghcr.io/intersectmbo/cardano-node:latest
echo "::endgroup::"
echo "::group::Tagging latest for intersectmbo/cardano-submit-api"
skopeo copy docker-archive:./result-api docker://ghcr.io/intersectmbo/cardano-submit-api:latest
echo "::endgroup::"
2 changes: 1 addition & 1 deletion configuration/cardano/mainnet-config.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"ShelleyGenesisFile": "mainnet-shelley-genesis.json",
"ShelleyGenesisHash": "1a3be38bcbb7911969283716ad7aa550250226b76a61fc51cc9a9a35d9276d81",
"TargetNumberOfActivePeers": 20,
"TargetNumberOfEstablishedPeers": 50,
"TargetNumberOfEstablishedPeers": 40,
"TargetNumberOfKnownPeers": 150,
"TargetNumberOfRootPeers": 60,
"TraceAcceptPolicy": true,
Expand Down
2 changes: 1 addition & 1 deletion configuration/cardano/mainnet-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ MaxKnownMajorProtocolVersion: 2

PeerSharing: True
TargetNumberOfActivePeers: 20
TargetNumberOfEstablishedPeers: 50
TargetNumberOfEstablishedPeers: 40
TargetNumberOfKnownPeers: 150
TargetNumberOfRootPeers: 60

Expand Down
3 changes: 2 additions & 1 deletion configuration/cardano/shelley_qa-config.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"ShelleyGenesisFile": "shelley_qa-shelley-genesis.json",
"ShelleyGenesisHash": "73a9f6bdb0aa97f5e63190a6f14a702bd64a21f2bec831cbfc28f6037128b952",
"TargetNumberOfActivePeers": 20,
"TargetNumberOfEstablishedPeers": 50,
"TargetNumberOfEstablishedPeers": 40,
"TargetNumberOfKnownPeers": 150,
"TargetNumberOfRootPeers": 60,
"TestAllegraHardForkAtEpoch": 0,
Expand Down Expand Up @@ -65,6 +65,7 @@
"TracingVerbosity": "NormalVerbosity",
"TurnOnLogMetrics": true,
"TurnOnLogging": true,
"UseTraceDispatcher": false,
"defaultBackends": [
"KatipBK"
],
Expand Down
6 changes: 2 additions & 4 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
version: "3.5"

services:
cardano-node:
image: ghcr.io/intersectmbo/cardano-node:${CARDANO_NODE_VERSION:-10.1.2}
image: ghcr.io/intersectmbo/cardano-node:${CARDANO_NODE_VERSION:-latest}
environment:
- NETWORK=${NETWORK:-mainnet}
volumes:
Expand All @@ -15,7 +13,7 @@ services:
max-file: "10"

cardano-submit-api:
image: ghcr.io/intersectmbo/cardano-submit-api:${CARDANO_SUBMIT_API_VERSION:-10.1.2}
image: ghcr.io/intersectmbo/cardano-submit-api:${CARDANO_SUBMIT_API_VERSION:-latest}
environment:
- NETWORK=${NETWORK:-mainnet}
depends_on:
Expand Down
6 changes: 3 additions & 3 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 307fdd2

Please sign in to comment.