Commit Graph

14 Commits

Author SHA1 Message Date
e70763dbe0 chore: update workflow name for Docker build
- Change workflow name from 'Build and Publish Docker Image' to 'Docker'

This change simplifies the workflow name for better readability and
identification in the CI/CD pipeline.
2025-01-22 09:39:04 +08:00
f83600412b chore: update docker workflow to include tags
- Add support for tagging workflow triggers on pushes
- Include version tags following the pattern 'v*'

This change enhances the Docker workflow by allowing the CI/CD
pipeline to respond to version tags, which is beneficial for
versioned releases and better management of deployment processes.
2025-01-22 09:37:35 +08:00
c9aef3ddfe build: update Docker workflow for versioning
- Add checkout step to retrieve full git history
- Introduce a step to get the current version of the project
- Modify login step to use the actor's username instead of a constant
- Update the tags to use dynamic versioning in Docker image push

These changes improve the Docker workflow by ensuring that the
correct version tag is used when building and pushing Docker
images. The modified steps enhance traceability and allow
the workflow to handle versioning accurately based on current
git tags, addressing the need for specific version control in
the images produced.
2025-01-22 09:23:59 +08:00
48f3da8913 chore: update Docker workflow for tagging
- Remove unnecessary steps for version extraction
- Simplify tag assignment using environment variables

This update cleans up the Docker workflow by eliminating steps
that were not crucial for the tagging process. The tagging
is now done directly with the repository name, reducing redundancy
and improving clarity in the workflow configuration.
2025-01-22 09:19:28 +08:00
a988c49ae0 chore: update docker tags formatting
- Change Docker tags configuration to be multiline
- Improve clarity and maintainability of the workflow

This change enhances the readability of the tags in the
Docker workflow, facilitating easier updates and understanding
of the tagging process.
2025-01-22 09:07:52 +08:00
1ab860c739 chore: fix output redirection in docker workflow
Some checks are pending
CI / scan_ruby (push) Waiting to run
CI / lint (push) Waiting to run
CI / test (push) Waiting to run
Build and Publish Docker Image / docker (push) Waiting to run
- Corrected syntax errors in output redirection
- Ensured that LATEST_TAG and VERSION_TAG are set correctly in the GitHub Actions output

These changes fix an issue where the command was improperly formatted,
which could lead to unexpected behavior during the workflow execution.
2025-01-22 01:05:13 +08:00
24cbf13a26 feat: enhance Docker workflow version tagging
- Store latest and version tags in variables
- Clean up output by using variables for tags

This update improves the clarity of the tagging process in the
Docker workflow configuration. The tags are now stored in
variables for better manageability and consistency in
environment output.
2025-01-22 01:02:22 +08:00
5bb91f16fd fix: correct LATEST_TAG output variable
- Remove extraneous dollar sign from LATEST_TAG
- Ensure correct evaluation during workflow execution

This fix resolves an issue that could cause the incorrect
setting of the LATEST_TAG environment variable in the
GitHub Actions workflow, ensuring proper deployment tagging.
2025-01-22 00:58:37 +08:00
04595824e6 feat: configure docker image prefix
Update Docker workflow to include image prefix in version and latest tag

Change the Docker image prefix in the GitHub workflow to include the registry, username and image name.
Update the environment variables to use the new format for the image prefix.
2025-01-22 00:56:58 +08:00
2b4275055c feat: update fetch-depth in docker workflow
- Update fetch-depth in Docker workflow configuration
- No additional dependencies added

This change updates the fetch-depth setting in the GitHub Actions Docker workflow. This ensures that we get the full Git history for the code checkout. There are no additional dependencies added to this change.
2025-01-22 00:51:55 +08:00
0f9b4efc80 chore: add checkout step in docker workflow
- Include checkout code step using actions/checkout@v3
- Set fetch-depth to 0 to retrieve the full git history

This change ensures that the workflow has access to the complete
commit history, which may be necessary for certain operations
within the Docker build process.
2025-01-22 00:51:08 +08:00
ec2c92e6c9 chore: update Docker workflow to use secrets
- Change hardcoded Docker Hub username to use secrets
- Update workflow to securely reference DockerHub credentials

This update enhances the security of the GitHub Actions workflow
by using secrets instead of exposing sensitive information
in the codebase. This ensures that the Docker Hub username is
kept private and reduces the risk of accidental exposure.
2025-01-22 00:47:33 +08:00
54133b2f87 feat: add GitHub Actions workflow for building and publishing Docker image
- Add Docker login step
- Set up QEMU
- Set up Docker Buildx
- Build and push Docker image

This feature allows for automated building and publishing of Docker images to Docker Hub. It includes proper setup of QEMU and Docker Buildx for cross-platform compatibility and efficient image building.
2025-01-22 00:45:11 +08:00
8517905b68 init with rails8 + active-admin 2025-01-19 01:13:59 +08:00