From 32f206544679f4e53b993e79b17e4685e6c3da9d Mon Sep 17 00:00:00 2001 From: thuanle Date: Tue, 23 Jun 2026 16:49:10 +0700 Subject: [PATCH] feat: update workflows and Dockerfiles for node-go, node-python, and docker-node images --- .gitea/workflows/docker-node.yml | 10 ++++++---- .gitea/workflows/node-go.yml | 6 ++++-- .gitea/workflows/node-python.yml | 10 ++++++---- README.md | 6 +++--- docker-node.Dockerfile => docker-node/Dockerfile | 0 node-go.Dockerfile => node-go/Dockerfile | 0 node-python.Dockerfile => node-python/Dockerfile | 0 7 files changed, 19 insertions(+), 13 deletions(-) rename docker-node.Dockerfile => docker-node/Dockerfile (100%) rename node-go.Dockerfile => node-go/Dockerfile (100%) rename node-python.Dockerfile => node-python/Dockerfile (100%) diff --git a/.gitea/workflows/docker-node.yml b/.gitea/workflows/docker-node.yml index 686ae4c..a8c92b1 100644 --- a/.gitea/workflows/docker-node.yml +++ b/.gitea/workflows/docker-node.yml @@ -1,7 +1,9 @@ name: docker-node image on: - push: + push: + paths: + - docker-node/** schedule: - cron: '0 0 * * 0' # 00:00 sáng Chủ nhật (UTC) workflow_dispatch: # Cho phép chạy tay nếu cần @@ -34,11 +36,11 @@ jobs: echo "Building image ${{ env.IMAGE }} for architecture: ${{ matrix.arch }}" docker build \ - -f ${{ env.IMAGE }}.Dockerfile \ + -f ${{ env.IMAGE }}/Dockerfile \ -t ${{ env.IMAGE_BASE }}:${{ env.IMAGE }}-${{ matrix.arch }}-latest \ --label "build_date=$(date -u +'%Y-%m-%dT%H:%M:%SZ')" \ --label "commit_sha=${{ github.sha }}" \ - . + ${{ env.IMAGE }} docker push ${{ env.IMAGE_BASE }}:${{ env.IMAGE }}-${{ matrix.arch }}-latest @@ -63,4 +65,4 @@ jobs: ${{ env.IMAGE_BASE }}:${{ env.IMAGE }}-amd64-latest \ ${{ env.IMAGE_BASE }}:${{ env.IMAGE }}-arm64-latest - docker manifest push ${{ env.IMAGE_BASE }}:${{ env.IMAGE }}-latest \ No newline at end of file + docker manifest push ${{ env.IMAGE_BASE }}:${{ env.IMAGE }}-latest diff --git a/.gitea/workflows/node-go.yml b/.gitea/workflows/node-go.yml index a0c4f50..adad04a 100644 --- a/.gitea/workflows/node-go.yml +++ b/.gitea/workflows/node-go.yml @@ -2,6 +2,8 @@ name: node-go image on: push: + paths: + - node-go/** schedule: - cron: '0 2 * * 0' # 02:00 sáng Chủ nhật (UTC) workflow_dispatch: @@ -34,11 +36,11 @@ jobs: echo "Building image ${{ env.IMAGE }} for architecture: ${{ matrix.arch }}" docker build \ - -f ${{ env.IMAGE }}.Dockerfile \ + -f ${{ env.IMAGE }}/Dockerfile \ -t ${{ env.IMAGE_REPO }}:${{ matrix.arch }}-latest \ --label "build_date=$(date -u +'%Y-%m-%dT%H:%M:%SZ')" \ --label "commit_sha=${{ github.sha }}" \ - . + ${{ env.IMAGE }} docker push ${{ env.IMAGE_REPO }}:${{ matrix.arch }}-latest diff --git a/.gitea/workflows/node-python.yml b/.gitea/workflows/node-python.yml index 8b5947b..7edc220 100644 --- a/.gitea/workflows/node-python.yml +++ b/.gitea/workflows/node-python.yml @@ -1,7 +1,9 @@ name: node-python image on: - push: + push: + paths: + - node-python/** schedule: - cron: '0 1 * * 0' # 01:00 sáng Chủ nhật (UTC) workflow_dispatch: # Cho phép chạy tay nếu cần @@ -34,11 +36,11 @@ jobs: echo "Building image ${{ env.IMAGE }} for architecture: ${{ matrix.arch }}" docker build \ - -f ${{ env.IMAGE }}.Dockerfile \ + -f ${{ env.IMAGE }}/Dockerfile \ -t ${{ env.IMAGE_BASE }}:${{ env.IMAGE }}-${{ matrix.arch }}-latest \ --label "build_date=$(date -u +'%Y-%m-%dT%H:%M:%SZ')" \ --label "commit_sha=${{ github.sha }}" \ - . + ${{ env.IMAGE }} docker push ${{ env.IMAGE_BASE }}:${{ env.IMAGE }}-${{ matrix.arch }}-latest @@ -63,4 +65,4 @@ jobs: ${{ env.IMAGE_BASE }}:${{ env.IMAGE }}-amd64-latest \ ${{ env.IMAGE_BASE }}:${{ env.IMAGE }}-arm64-latest - docker manifest push ${{ env.IMAGE_BASE }}:${{ env.IMAGE }}-latest \ No newline at end of file + docker manifest push ${{ env.IMAGE_BASE }}:${{ env.IMAGE }}-latest diff --git a/README.md b/README.md index b85c74b..491fea9 100644 --- a/README.md +++ b/README.md @@ -6,7 +6,7 @@ Kho lưu trữ này cung cấp các Docker base image cho nhiều mục đích s - **docker-node** - `git.thuanle.me/public/base:docker-node-latest` - - Dockerfile: [docker-node.Dockerfile](docker-node.Dockerfile) + - Dockerfile: [docker-node/Dockerfile](docker-node/Dockerfile) - Các gói/phần mềm đã cài đặt: - **Node.js v22** kèm theo **npm** và **yarn** - **Docker CLI** @@ -14,7 +14,7 @@ Kho lưu trữ này cung cấp các Docker base image cho nhiều mục đích s - **node-python** - `git.thuanle.me/public/base:node-python-latest` - - Dockerfile: [node-python.Dockerfile](node-python.Dockerfile) + - Dockerfile: [node-python/Dockerfile](node-python/Dockerfile) - Các gói/phần mềm đã cài đặt: - **Node.js** kèm theo **npm** và **yarn** - **git** @@ -22,7 +22,7 @@ Kho lưu trữ này cung cấp các Docker base image cho nhiều mục đích s - **node-go** - `git.thuanle.me/public/node-go:latest` - - Dockerfile: [node-go.Dockerfile](node-go.Dockerfile) + - Dockerfile: [node-go/Dockerfile](node-go/Dockerfile) - Workflow: [.gitea/workflows/node-go.yml](.gitea/workflows/node-go.yml) - Các gói/phần mềm đã cài đặt: - **Node.js** kèm theo **npm** và **yarn** diff --git a/docker-node.Dockerfile b/docker-node/Dockerfile similarity index 100% rename from docker-node.Dockerfile rename to docker-node/Dockerfile diff --git a/node-go.Dockerfile b/node-go/Dockerfile similarity index 100% rename from node-go.Dockerfile rename to node-go/Dockerfile diff --git a/node-python.Dockerfile b/node-python/Dockerfile similarity index 100% rename from node-python.Dockerfile rename to node-python/Dockerfile