Skip to content

Fix some github action warnings: Variables should be defined before their use#136

Merged
cgalibern merged 2 commits into
opensvc:mainfrom
cgalibern:dev1
Apr 30, 2026
Merged

Fix some github action warnings: Variables should be defined before their use#136
cgalibern merged 2 commits into
opensvc:mainfrom
cgalibern:dev1

Conversation

@cgalibern
Copy link
Copy Markdown
Contributor

No description provided.

@cgalibern cgalibern force-pushed the dev1 branch 4 times, most recently from 6801628 to 28d2f21 Compare April 30, 2026 11:56
This commit fixes docker build warnings: Variables should be defined before their use

It simplifies the docker build process with removing git commands (replaced by env vars)

## README
- Add docker build example

## CI Main changes:
- Workflow updates (.github/workflows/build-image.yml):
- Added a step to set a BUILDTIME environment variable with the current timestamp.
- Added a step to set a VERSION environment variable with the current git describe --tags --abbrev.
- Passed BRANCH and BUILDTIME as build arguments to the Docker build process.

## Dockerfile updates:
- Added a BUILDTIME argument for improved traceability during builds.
- Enhanced the git clone command to use the specified branch directly, improving clarity and robustness.
- Removed default values for arguments (BRANCH, OSVC_GITREPO_URL) to simplify usage.
@cgalibern cgalibern merged commit e750489 into opensvc:main Apr 30, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant