Skip to content

Commit 71d96cf

Browse files
committed
Enable dynode image build in CI
Remove the commented change-detection step and un-comment the "Build and push dynode" job in the GitHub Actions workflow. The dynode image is now built and pushed every run (context ., Dockerfile, target dynode, push: true, platforms: linux/amd64, cache-from: type=gha) with labels and tags preserved. This simplifies the workflow by removing the conditional that previously gated dynode builds.
1 parent 5510fe5 commit 71d96cf

1 file changed

Lines changed: 14 additions & 24 deletions

File tree

.github/workflows/publish-containers.yml

Lines changed: 14 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -27,15 +27,6 @@ jobs:
2727
submodules: recursive
2828
fetch-depth: 0
2929

30-
# - name: Check for dynode changes
31-
# id: changes
32-
# run: |
33-
# if git diff --name-only ${{ github.event.before }} ${{ github.sha }} | grep -qE '^(apps/dynode/|Cargo\.lock|Dockerfile)'; then
34-
# echo "dynode=true" >> $GITHUB_OUTPUT
35-
# else
36-
# echo "dynode=false" >> $GITHUB_OUTPUT
37-
# fi
38-
3930
- name: Set up Docker Buildx
4031
uses: docker/setup-buildx-action@v4
4132

@@ -62,18 +53,17 @@ jobs:
6253
${{ env.CORE_IMAGE }}:latest
6354
${{ env.CORE_IMAGE }}:${{ github.sha }}
6455
65-
# - name: Build and push dynode
66-
# if: steps.changes.outputs.dynode == 'true' || github.event_name == 'workflow_dispatch'
67-
# uses: docker/build-push-action@v7
68-
# with:
69-
# context: .
70-
# file: ./Dockerfile
71-
# target: dynode
72-
# push: true
73-
# platforms: linux/amd64
74-
# cache-from: type=gha
75-
# labels: |
76-
# org.opencontainers.image.source=https://github.com/${{ github.repository }}
77-
# tags: |
78-
# ${{ env.DYNODE_IMAGE }}:latest
79-
# ${{ env.DYNODE_IMAGE }}:${{ github.sha }}
56+
- name: Build and push dynode
57+
uses: docker/build-push-action@v7
58+
with:
59+
context: .
60+
file: ./Dockerfile
61+
target: dynode
62+
push: true
63+
platforms: linux/amd64
64+
cache-from: type=gha
65+
labels: |
66+
org.opencontainers.image.source=https://github.com/${{ github.repository }}
67+
tags: |
68+
${{ env.DYNODE_IMAGE }}:latest
69+
${{ env.DYNODE_IMAGE }}:${{ github.sha }}

0 commit comments

Comments
 (0)