Skip to content
Merged
Show file tree
Hide file tree
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
2 changes: 1 addition & 1 deletion .github/workflows/dev-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
# - name: Nisha Sharma
# - email: nisha.sharma@uni-jena.de

name: Prod Build and Publish to Dev
name: Build and Publish to Dev

on:
push:
Expand Down
15 changes: 7 additions & 8 deletions .github/workflows/prod-build.yml
Original file line number Diff line number Diff line change
@@ -1,16 +1,15 @@

# This workflow will perform following actions when code is pushed to the main branch:
# - Run tests and linting checks (can be enabled via needs: test_and_lint)
# - Build and push nmrKit Docker image with layer caching for faster builds
# - Conditionally build nmr-cli image only if files in app/scripts/nmr-cli/ changed
# - Push images to Docker Hub under namespace nfdi4chem with latest tag
# - Prevent redundant builds using concurrency control
#
#
# Maintainers:
# - name: Nisha Sharma
# - email: nisha.sharma@uni-jena.de

name : Prod Build and Publish
name: Build and Publish to Prod

# Runs on manual workflow_dispatch with confirmation
on:
Expand Down Expand Up @@ -73,18 +72,18 @@ jobs:
# Clone repository code to runner
- name: Check out the repo
uses: actions/checkout@v4

# Enable advanced Docker build features (required for caching)
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

# Authenticate with Docker Hub for image push access
- name: Log in to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}

# Detect changes in nmr-cli folder to skip unnecessary builds
- name: Check for file changes
id: changes
Expand All @@ -93,7 +92,7 @@ jobs:
filters: |
nmr-cli:
- 'app/scripts/nmr-cli/**'

# Build main nmrKit image with registry caching for faster builds
- name: Build and push nmrKit Docker image
uses: docker/build-push-action@v6
Expand All @@ -117,4 +116,4 @@ jobs:
build-args: RELEASE_VERSION=${{ env.RELEASE_TAG }}
tags: ${{ env.REPOSITORY_NAMESPACE }}/${{ env.NMR_CLI_REPOSITORY_NAME }}:${{ env.RELEASE_TAG }}
cache-from: type=registry,ref=${{ env.REPOSITORY_NAMESPACE }}/${{ env.NMR_CLI_REPOSITORY_NAME }}:buildcache
cache-to: type=registry,ref=${{ env.REPOSITORY_NAMESPACE }}/${{ env.NMR_CLI_REPOSITORY_NAME }}:buildcache,mode=max
cache-to: type=registry,ref=${{ env.REPOSITORY_NAMESPACE }}/${{ env.NMR_CLI_REPOSITORY_NAME }}:buildcache,mode=max
Loading