Commit Graph

12 Commits

Author SHA1 Message Date
Nikola Derežić
87fe823969 (enhancement) add conditional workflow execution based on version changes
All checks were successful
Build and Push Docker Image / build (push) Has been skipped
The workflow now skips the build job when the version in package.json hasn't changed compared to the previous commit. This prevents unnecessary Docker builds when only non-version changes are pushed.

Key changes:
- Added version-check step to compare current and previous package.json versions
- Added job-level conditional to skip build when version is unchanged
- Pull requests always run to validate version bumps before merge
- Handles edge cases: first commit, missing package.json in history

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2026-01-09 13:37:28 +01:00
Nikola Derežić
46781e07a3 (doc) formatting comments
All checks were successful
Build and Push Docker Image / build (push) Successful in 25s
2026-01-09 13:26:39 +01:00
Nikola Derežić
5ace3588cc (bugfix) registry username was not referencing correct variable
All checks were successful
Build and Push Docker Image / build (push) Successful in 26s
2026-01-09 13:14:36 +01:00
Nikola Derežić
5a04696e83 (doc) comenting code
Some checks failed
Build and Push Docker Image / build (push) Failing after 18s
2026-01-09 13:13:07 +01:00
Nikola Derežić
1c62f8dbf7 testing out profile-scope variables & secrets
Some checks failed
Build and Push Docker Image / build (push) Failing after 20s
2026-01-09 13:09:59 +01:00
Nikola Derežić
0a8348458b (bugfix) build.yaml: secret and var wasn't referenced properly
All checks were successful
Build and Push Docker Image / build (push) Successful in 49s
2026-01-09 12:41:15 +01:00
Nikola Derežić
e5cfae67dc (doc) Update README and clean up workflow step name
Some checks failed
Build and Push Docker Image / build (push) Failing after 46s
Updated README to document registry authentication setup using REGISTRY_USERNAME and REGISTRY_TOKEN configured in repo settings. Also removed debug info from workflow step name.

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2026-01-09 12:37:14 +01:00
Nikola Derežić
6d1e01d73b (fix) fixing registry login by replacing gitea.actor & gitea.token with action variable and action secret
Some checks failed
Build and Push Docker Image / build (push) Failing after 46s
2026-01-09 12:33:26 +01:00
Nikola Derežić
03ad8588c0 (troubleshooting) added gitea.actor and gitea.token to step name
Some checks failed
Build and Push Docker Image / build (push) Failing after 18s
2026-01-09 11:58:39 +01:00
Nikola Derežić
ecf5f635f7 Modified registry authentication to use gitea.ACTOR/gitea.token instead of env variables
Some checks failed
Build and Push Docker Image / build (push) Failing after 19s
2026-01-09 11:54:35 +01:00
Nikola Derežić
8deb647b52 Add registry authentication using Gitea automatic secrets
Some checks failed
Build and Push Docker Image / build (push) Failing after 17s
Use GITEA_ACTOR and GITEA_TOKEN for Docker registry login. These secrets
are automatically provided by Gitea Actions and require no manual
configuration.

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2026-01-09 11:48:17 +01:00
Nikola Derežić
70e721cc31 Initial commit: Gitea Actions demo project with Docker build
Some checks failed
Build and Push Docker Image / build (push) Failing after 6m27s
Add simple Node.js Hello World application with automated Docker build and
push workflow using Gitea Actions. The workflow builds and pushes images to
the Gitea registry with versioning from package.json.

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2026-01-09 11:24:17 +01:00