Skip to content

Commit

Permalink
Do not publish :latest images on v5.6 branch.
Browse files Browse the repository at this point in the history
  • Loading branch information
KtorZ committed Aug 12, 2023
1 parent 83176a0 commit 558ccbb
Showing 1 changed file with 9 additions and 10 deletions.
19 changes: 9 additions & 10 deletions .github/workflows/docker.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -85,35 +85,34 @@ jobs:
run: |
echo "image=cardanosolutions/${{ matrix.target }}" >> $GITHUB_OUTPUT
- name: 🔨 Build and push (default latest)
if: ${{ github.event_name == 'push' && matrix.network == 'mainnet' }}
- name: 🏷️ Build and push (ogmios, default tag)
if: ${{ github.event_name == 'push' && matrix.network == 'mainnet' && matrix.target == 'ogmios' }}
uses: docker/build-push-action@v2
with:
build-args: |
NETWORK=${{ matrix.network }}
context: .
push: true
tags: ${{ steps.base-variables.outputs.image }}:latest
tags: ${{ steps.base-variables.outputs.image }}:v5.6.0
target: ${{ matrix.target }}
platforms: linux/amd64
cache-from: type=registry,ref=${{ steps.base-variables.outputs.image }}:latest
cache-to: type=inline

- name: 🔨 Build and push (network latest)
if: ${{ github.event_name == 'push' }}
- name: 🏷️ Build and push (ogmios, network tags)
if: ${{ github.event_name == 'push' && matrix.target == 'ogmios' }}
uses: docker/build-push-action@v2
with:
build-args: |
NETWORK=${{ matrix.network }}
CARDANO_NODE_VERSION=${{ matrix.cardano_node_version }}
context: .
push: true
tags: ${{ steps.base-variables.outputs.image }}:latest-${{ matrix.network }}
tags: ${{ steps.base-variables.outputs.image }}:v5.6.0-${{ matrix.network }}
target: ${{ matrix.target }}
platforms: linux/amd64
cache-from: type=registry,ref=${{ steps.base-variables.outputs.image }}:latest-${{ matrix.network }}
cache-to: type=inline

- name: 🏷️ Build and push (default tag)
- name: 🏷️ Build and push (cardano-node-ogmios, default tag)
if: ${{ github.event_name == 'push' && matrix.network == 'mainnet' && matrix.target == 'cardano-node-ogmios' }}
uses: docker/build-push-action@v2
with:
Expand All @@ -126,7 +125,7 @@ jobs:
cache-from: type=registry,ref=${{ steps.base-variables.outputs.image }}:latest
cache-to: type=inline

- name: 🏷️ Build and push (network tags)
- name: 🏷️ Build and push (cardano-node-ogmios, network tags)
if: ${{ github.event_name == 'push' && matrix.target == 'cardano-node-ogmios' }}
uses: docker/build-push-action@v2
with:
Expand Down

0 comments on commit 558ccbb

Please sign in to comment.