refactor: update environment variable names and enhance README for clarity
All checks were successful
Weekly Docker Build / build (amd64) (push) Successful in 36s

This commit is contained in:
thuanle
2025-08-12 16:22:00 +07:00
parent f32dbcd559
commit d0a65fdad4
2 changed files with 16 additions and 32 deletions

View File

@@ -7,7 +7,7 @@ on:
workflow_dispatch: # Cho phép chạy tay nếu cần
env:
BASE_IMAGE_PATH: git.thuanle.me/public/base
IMAGE_BASE: git.thuanle.me/public/base
IMAGE: arch-docker-node
jobs:
@@ -34,32 +34,9 @@ jobs:
docker build \
-f ${{ env.IMAGE }}.${{ matrix.arch }}.Dockerfile \
-t ${{ env.BASE_IMAGE_PATH }}:${{ env.IMAGE }}-${{ matrix.arch }}-latest \
-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 }}" \
.
docker push ${{ env.BASE_IMAGE_PATH }}:${{ env.IMAGE }}-${{ matrix.arch }}-latest
# amend-manifest:
# runs-on: ubuntu-latest
# needs: [build]
# steps:
# - name: Login to Docker Registry
# uses: docker/login-action@v3
# with:
# registry: git.thuanle.me
# username: ${{ secrets.DOCKER_USERNAME }}
# password: ${{ secrets.DOCKER_PASSWORD }}
# - name: Push Docker manifest
# run: |
# echo "Delete existing manifest"
# docker manifest rm ${{ env.BASE_IMAGE_PATH }}:latest || true
# echo "Create new manifest"
# docker manifest create ${{ env.BASE_IMAGE_PATH }}:latest \
# ${{ env.BASE_IMAGE_PATH }}:amd64-latest \
# ${{ env.BASE_IMAGE_PATH }}:arm64-latest
# docker manifest push ${{ env.BASE_IMAGE_PATH }}:latest
docker push ${{ env.IMAGE_BASE }}:${{ env.IMAGE }}-${{ matrix.arch }}-latest

View File

@@ -1,11 +1,18 @@
# arch-node-docker
Dự án này cung cấp một Dockerfile để thiết lập môi trường phát triển trên Arch Linux với các công cụ phổ biến.
Kho lưu trữ này cung cấp các Docker base image cho nhiều mục đích sử dụng.
## Các môi trường/phần mềm đã được cài đặt trong image
- **Node.js**: Runtime cho JavaScript
- **npm**: Trình quản lý package cho Node.js
- **yarn**: Trình quản lý package thay thế npm
- **Docker CLI**: Dùng để quản lý Docker containers từ trong container
- **git**: Quản lý mã nguồn
- **arch-docker-node**
- `git.thuanle.me/public/base:arch-docker-node-latest`
- **Hệ điều hành**: Arch Linux
- **Kiến trúc**: amd64
- Các gói/phần mềm đã cài đặt:
- **Node.js** kèm theo **npm****yarn**
- **Docker CLI**
- **git**
## Update
- Repo duoc update hang tuan vao 01:00 Chu nhat (GMT)