Skip to content

Add conditional checks to Docker workflow for missing secrets#18

Merged
JosunLP merged 3 commits into
devfrom
copilot/sub-pr-17
Dec 5, 2025
Merged

Add conditional checks to Docker workflow for missing secrets#18
JosunLP merged 3 commits into
devfrom
copilot/sub-pr-17

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Dec 5, 2025

  • Add conditional checks to Docker login step to skip when secrets are not configured
  • Add conditional checks to subsequent Docker steps that depend on secrets
  • Validate the workflow changes
  • Run code review and security checks
  • Reply to feedback comment
  • Remove redundant ${{ }} wrappers from if conditionals per review feedback

💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

Copilot AI changed the title [WIP] WIP to address feedback from PR #17 for version 1.1.0 Add conditional checks to Docker workflow for missing secrets Dec 5, 2025
Copilot AI requested a review from JosunLP December 5, 2025 12:26
@JosunLP JosunLP marked this pull request as ready for review December 5, 2025 12:26
Copilot AI review requested due to automatic review settings December 5, 2025 12:26
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adds conditional checks to the Docker workflow to prevent failures when DOCKER_USERNAME or DOCKER_PASSWORD secrets are not configured, which is particularly useful for manual workflow dispatches in environments where Docker Hub publishing isn't set up.

Key changes:

  • Added if conditionals to three Docker-related steps (login, metadata extraction, build/push)
  • All conditionals check for the presence of both DOCKER_USERNAME and DOCKER_PASSWORD secrets
  • Steps now skip gracefully instead of failing when secrets are unavailable

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread .github/workflows/docker.yml Outdated
Comment thread .github/workflows/docker.yml Outdated
Comment thread .github/workflows/docker.yml Outdated
@JosunLP
Copy link
Copy Markdown
Owner

JosunLP commented Dec 5, 2025

@copilot apply changes based on the comments in this thread

Copy link
Copy Markdown
Contributor Author

Copilot AI commented Dec 5, 2025

@copilot apply changes based on the comments in this thread

Applied the changes from the review feedback. Removed the redundant ${{ }} wrappers from all three if conditionals, using the idiomatic GitHub Actions syntax instead.

Changes made in commit 8c4a05b.

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 1 out of 1 changed files in this pull request and generated no new comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@JosunLP JosunLP merged commit f2a0196 into dev Dec 5, 2025
11 checks passed
@JosunLP JosunLP deleted the copilot/sub-pr-17 branch December 5, 2025 12:46
JosunLP added a commit that referenced this pull request Dec 12, 2025
* Initial plan

* Add native macOS support for builds and releases

Co-authored-by: JosunLP <[email protected]>

* Refactor: consolidate Unix installation logic for Linux and macOS

Co-authored-by: JosunLP <[email protected]>

* 🐛 Korrigiere SHA256-Checksumme für Linux und macOS; füge Fehlerausgabe für nicht unterstützte macOS-Architekturen hinzu

* 🐛 Verbessere Fehlerausgabe für nicht unterstützte macOS-Architekturen

* Feature: Rotation (#11)

* ✨ Füge Unterstützung für die Rotation von Objekten hinzu: Ermöglicht alternative Ausrichtungen während des Verpackungsprozesses und aktualisiert die Benutzeroberfläche zur Konfiguration.

* Optimize rotation deduplication and standardize epsilon handling (#14)

* Initial plan

* Address PR review comments: optimize orientation deduplication and standardize epsilon values

Co-authored-by: JosunLP <[email protected]>

* Extract dimension hash scale factor to named constant and reduce overflow risk

Co-authored-by: JosunLP <[email protected]>

* Fix misleading comment about dimension hash scale factor

Co-authored-by: JosunLP <[email protected]>

* Remove unused dims_almost_equal function after optimization

Co-authored-by: JosunLP <[email protected]>

* Remove unnecessary blank line for code consistency

Co-authored-by: JosunLP <[email protected]>

* Add test coverage for orientation deduplication with equal dimensions

Co-authored-by: JosunLP <[email protected]>

* Add clarifying comments for O(n²) uniqueness checks in tests

Co-authored-by: JosunLP <[email protected]>

* Fix trailing whitespace and align frontend epsilon to backend precision

Co-authored-by: JosunLP <[email protected]>

* Update src/optimizer.rs

Co-authored-by: Copilot <[email protected]>
Signed-off-by: Jonas Pfalzgraf <[email protected]>

---------

Signed-off-by: Jonas Pfalzgraf <[email protected]>
Co-authored-by: copilot-swe-agent[bot] <[email protected]>
Co-authored-by: JosunLP <[email protected]>
Co-authored-by: Jonas Pfalzgraf <[email protected]>
Co-authored-by: Copilot <[email protected]>

* Update README.md

Co-authored-by: Copilot <[email protected]>
Signed-off-by: Jonas Pfalzgraf <[email protected]>

* Move allow_rotations documentation to API endpoints section (#15)

* Initial plan

* Move allow_rotations documentation to API endpoints section

Co-authored-by: JosunLP <[email protected]>

---------

Co-authored-by: copilot-swe-agent[bot] <[email protected]>
Co-authored-by: JosunLP <[email protected]>

---------

Signed-off-by: Jonas Pfalzgraf <[email protected]>
Co-authored-by: Copilot <[email protected]>
Co-authored-by: Copilot <[email protected]>

* Add Docker deployment target with automated Docker Hub publishing (#13)

* Initial plan

* Add Docker deployment support with GitHub Actions workflow

Co-authored-by: JosunLP <[email protected]>

* Add Docker setup documentation and update Dockerfile to use latest Rust

Co-authored-by: JosunLP <[email protected]>

* Address code review feedback: pin Rust version and improve placeholders

Co-authored-by: JosunLP <[email protected]>

* Apply PR review feedback: security, caching, and documentation improvements

Co-authored-by: JosunLP <[email protected]>

* Apply second round of PR review feedback

Co-authored-by: JosunLP <[email protected]>

* Apply third round of PR review feedback

Co-authored-by: JosunLP <[email protected]>

* Apply fourth round of PR review feedback

Co-authored-by: JosunLP <[email protected]>

---------

Co-authored-by: copilot-swe-agent[bot] <[email protected]>
Co-authored-by: JosunLP <[email protected]>

* Potential fix for code scanning alert no. 1: Workflow does not contain permissions (#16)

Signed-off-by: Jonas Pfalzgraf <[email protected]>
Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>

* Update src/api.rs

Co-authored-by: Copilot <[email protected]>
Signed-off-by: Jonas Pfalzgraf <[email protected]>

* Add conditional checks to Docker workflow for missing secrets (#18)

* Initial plan

* Add conditional checks to Docker workflow to skip when secrets are not configured

Co-authored-by: JosunLP <[email protected]>

* Remove redundant ${{ }} wrappers from if conditionals in Docker workflow

Co-authored-by: JosunLP <[email protected]>

---------

Co-authored-by: copilot-swe-agent[bot] <[email protected]>
Co-authored-by: JosunLP <[email protected]>

* Revert invalid secret conditionals in Docker workflow (#19)

* Initial plan

* Revert invalid secret conditionals in Docker workflow

Co-authored-by: JosunLP <[email protected]>

---------

Co-authored-by: copilot-swe-agent[bot] <[email protected]>
Co-authored-by: JosunLP <[email protected]>

* Add unit tests for parse_bool and clarify allow_rotations API fallback (#20)

* Initial plan

* Add unit tests for parse_bool and clarify allow_rotations fallback behavior

Co-authored-by: JosunLP <[email protected]>

* Remove trailing whitespace from blank comment lines in test code

Co-authored-by: JosunLP <[email protected]>

---------

Co-authored-by: copilot-swe-agent[bot] <[email protected]>
Co-authored-by: JosunLP <[email protected]>

* fmt

* Update dependencies and improve API route handling

- Updated dependencies in Cargo.toml for axum, tokio, tower-http, rust-embed, tempfile, flate2, and zip.
- Changed API route pattern from "/*path" to "{*path}" for better path matching.
- Added #[allow(dead_code)] annotations to several functions in model.rs, geometry.rs, optimizer.rs to suppress warnings for unused code.

* Update version to 1.1.0 and enhance Docker setup documentation

* Refine Docker configuration and clarify axum 0.8 route syntax (#23)

* Initial plan

* Address Docker review feedback - improve .dockerignore, add dev tag, clarify Dockerfile

Co-authored-by: JosunLP <[email protected]>

* Update .dockerignore

Co-authored-by: Copilot <[email protected]>
Signed-off-by: Jonas Pfalzgraf <[email protected]>

---------

Signed-off-by: Jonas Pfalzgraf <[email protected]>
Co-authored-by: copilot-swe-agent[bot] <[email protected]>
Co-authored-by: JosunLP <[email protected]>
Co-authored-by: Jonas Pfalzgraf <[email protected]>
Co-authored-by: Copilot <[email protected]>

* Add test coverage for allow_rotations field parsing and override behavior (#21)

* Initial plan

* Add comprehensive test coverage for allow_rotations field

Co-authored-by: JosunLP <[email protected]>

---------

Co-authored-by: copilot-swe-agent[bot] <[email protected]>
Co-authored-by: JosunLP <[email protected]>

* Update CHANGELOG

Co-authored-by: Copilot <[email protected]>
Signed-off-by: Jonas Pfalzgraf <[email protected]>

* Update CHANGELOG

Co-authored-by: Copilot <[email protected]>
Signed-off-by: Jonas Pfalzgraf <[email protected]>

---------

Signed-off-by: Jonas Pfalzgraf <[email protected]>
Co-authored-by: copilot-swe-agent[bot] <[email protected]>
Co-authored-by: Copilot <[email protected]>
Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants