Test CI v2.1.45
Some checks failed
Go CI Pipeline / Security Scan (SCA - govulncheck) (push) Has been cancelled
Go CI Pipeline / Run Tests (push) Has been cancelled
Go CI Pipeline / Lint Code (push) Has been cancelled
DNS & Network Test / network-test (push) Failing after 3s
Go CI Pipeline / Build Application (push) Successful in 1m55s
Go CI Pipeline / Build and Push Docker Image (push) Failing after 18s
Go CI Pipeline / Deploy to VPS (push) Has been skipped
Some checks failed
Go CI Pipeline / Security Scan (SCA - govulncheck) (push) Has been cancelled
Go CI Pipeline / Run Tests (push) Has been cancelled
Go CI Pipeline / Lint Code (push) Has been cancelled
DNS & Network Test / network-test (push) Failing after 3s
Go CI Pipeline / Build Application (push) Successful in 1m55s
Go CI Pipeline / Build and Push Docker Image (push) Failing after 18s
Go CI Pipeline / Deploy to VPS (push) Has been skipped
This commit is contained in:
parent
5812780b38
commit
400bd7560e
@ -117,6 +117,9 @@ jobs:
|
||||
docker-build-push:
|
||||
name: Build and Push Docker Image
|
||||
runs-on: ubuntu-latest
|
||||
container:
|
||||
image: docker:24.0.5-cli
|
||||
options: --privileged
|
||||
# Chạy sau khi job 'build' (tạo binary) thành công
|
||||
needs: [build]
|
||||
# Chỉ chạy khi push vào nhánh master (không chạy cho PR)
|
||||
@ -131,7 +134,7 @@ jobs:
|
||||
with:
|
||||
name: server-binary # Tên artifact đã upload ở job build
|
||||
path: ./bin # Giải nén vào thư mục ./bin
|
||||
|
||||
|
||||
- name: Set up Docker Buildx # Công cụ build image nâng cao
|
||||
uses: docker/setup-buildx-action@v3
|
||||
|
||||
@ -157,7 +160,9 @@ jobs:
|
||||
deploy:
|
||||
name: Deploy to VPS
|
||||
runs-on: ubuntu-latest # Job này phải chạy trên runner có quyền truy cập Docker socket của host
|
||||
# Chạy sau khi build và push image thành công
|
||||
container:
|
||||
image: docker:24.0.5-cli
|
||||
options: --privileged
|
||||
needs: [docker-build-push]
|
||||
# Chỉ chạy khi push vào nhánh master
|
||||
if: github.ref_name == 'master' || gitea.ref_name == 'master'
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user