-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* docs: update docker.md and version up * chore: version up * deps: update pydantic (2.10.2 -> 2.10.3), fastapi (0.115.5 -> 0.115.6) * chore: update base image for CI/CD to Alpine 3.21 * deps: update deps * feat: added the basic functionality to check for updates to Docker images. * feat: added the basic functionality to check for updates to Docker images. * fix: ValueError: time data does not match format '%Y-%m-%dT%H:%M:%S.%fZ' * feat: current tag update info - first! * chore: update template format * chore: update Dockerfile * chore: update deps * feat: more fine-tuning of the module * feat: bump version to 0.2.1 * deps: update min ver * chore: added action for rebuild all supported tags * chore: added action for rebuild all supported tags * feat: bump version to 0.2.1
- Loading branch information
Showing
24 changed files
with
1,352 additions
and
664 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
name: CI Rebuild All Supported Tags | ||
|
||
on: | ||
schedule: | ||
- cron: '0 13 * * 4' # Run every Thursday at 13:00 UTC (18:00 Yekaterinburg time) | ||
workflow_dispatch: # Allow manual trigger | ||
|
||
jobs: | ||
docker: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
# Set up git and clone the repository | ||
- name: Checkout repository | ||
uses: actions/checkout@v3 | ||
|
||
# Retrieve all tags and filter by minimum version | ||
- name: Get all supported tags | ||
id: get_tags | ||
run: | | ||
git fetch --tags | ||
# Retrieve all tags in 0.0.0 format starting from 0.2.0 | ||
min_version="0.2.0" | ||
tags=$(git tag -l | sort -V | awk -v min_version="$min_version" '$0 >= min_version') | ||
latest_tag=$(echo "$tags" | tail -n 1) | ||
echo "tags=$tags" >> $GITHUB_ENV | ||
echo "latest_tag=$latest_tag" >> $GITHUB_ENV | ||
# Log in to Docker Hub | ||
- name: Login to Docker Hub | ||
uses: docker/login-action@v3 | ||
with: | ||
username: ${{ secrets.DOCKER_USERNAME }} | ||
password: ${{ secrets.DOCKER_PASSWORD }} | ||
|
||
# Build and push Docker images | ||
- name: Build and push Docker images | ||
uses: docker/build-push-action@v5 | ||
with: | ||
context: . | ||
build-args: --target prod | ||
sbom: true | ||
provenance: true | ||
file: hub.Dockerfile | ||
push: true | ||
tags: | | ||
${{ join(fromJson(env.tags), ',') }} | ||
orenlab/pytmbot:latest |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,44 +1,44 @@ | ||
<component name="ProjectRunConfigurationManager"> | ||
<configuration default="false" name="Dockerfile" type="docker-deploy" factoryName="dockerfile" server-name="Docker"> | ||
<deployment type="dockerfile"> | ||
<settings> | ||
<option name="imageTag" value="latest" /> | ||
<option name="containerName" value="pytmbot" /> | ||
<option name="sourceFilePath" value="Dockerfile" /> | ||
<option name="volumeBindings"> | ||
<list> | ||
<DockerVolumeBindingImpl> | ||
<option name="containerPath" value="/var/run/docker.sock" /> | ||
<option name="hostPath" value="/var/run/docker.sock" /> | ||
<option name="readOnly" value="true" /> | ||
</DockerVolumeBindingImpl> | ||
</list> | ||
</option> | ||
</settings> | ||
</deployment> | ||
<method v="2" /> | ||
</configuration> | ||
<configuration default="false" name="Dockerfile" type="docker-deploy" factoryName="dockerfile" server-name="Docker"> | ||
<deployment type="dockerfile"> | ||
<settings> | ||
<option name="imageTag" value="orenlab/pytmbot:latest" /> | ||
<option name="buildCliOptions" value="--target self_build" /> | ||
<option name="command" value="--log-level DEBUG --mode dev" /> | ||
<option name="containerName" value="pytmbot" /> | ||
<option name="commandLineOptions" value="" /> | ||
<option name="showCommandPreview" value="true" /> | ||
<option name="sourceFilePath" value="Dockerfile" /> | ||
<option name="volumeBindings"> | ||
<list> | ||
<DockerVolumeBindingImpl> | ||
<option name="containerPath" value="/var/run/docker.sock" /> | ||
<option name="hostPath" value="/var/run/docker.sock" /> | ||
<option name="readOnly" value="true" /> | ||
</DockerVolumeBindingImpl> | ||
</list> | ||
</option> | ||
</settings> | ||
</deployment> | ||
<method v="2" /> | ||
</configuration> | ||
<configuration default="false" name="Dockerfile" type="docker-deploy" factoryName="dockerfile" server-name="Docker"> | ||
<deployment type="dockerfile"> | ||
<settings> | ||
<option name="imageTag" value="latest"/> | ||
<option name="containerName" value="pytmbot"/> | ||
<option name="sourceFilePath" value="Dockerfile"/> | ||
<option name="volumeBindings"> | ||
<list> | ||
<DockerVolumeBindingImpl> | ||
<option name="containerPath" value="/var/run/docker.sock"/> | ||
<option name="hostPath" value="/var/run/docker.sock"/> | ||
<option name="readOnly" value="true"/> | ||
</DockerVolumeBindingImpl> | ||
</list> | ||
</option> | ||
</settings> | ||
</deployment> | ||
<method v="2"/> | ||
</configuration> | ||
<configuration default="false" name="Dockerfile" type="docker-deploy" factoryName="dockerfile" server-name="Docker"> | ||
<deployment type="dockerfile"> | ||
<settings> | ||
<option name="imageTag" value="orenlab/pytmbot:latest"/> | ||
<option name="buildCliOptions" value="--target self_build"/> | ||
<option name="command" value="--log-level DEBUG --mode dev"/> | ||
<option name="containerName" value="pytmbot"/> | ||
<option name="commandLineOptions" value=""/> | ||
<option name="showCommandPreview" value="true"/> | ||
<option name="sourceFilePath" value="Dockerfile"/> | ||
<option name="volumeBindings"> | ||
<list> | ||
<DockerVolumeBindingImpl> | ||
<option name="containerPath" value="/var/run/docker.sock"/> | ||
<option name="hostPath" value="/var/run/docker.sock"/> | ||
<option name="readOnly" value="true"/> | ||
</DockerVolumeBindingImpl> | ||
</list> | ||
</option> | ||
</settings> | ||
</deployment> | ||
<method v="2"/> | ||
</configuration> | ||
</component> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.