Test CI v2.1.48
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 58s
Go CI Pipeline / Build and Push Docker Image (push) Failing after 41s
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 58s
Go CI Pipeline / Build and Push Docker Image (push) Failing after 41s
Go CI Pipeline / Deploy to VPS (push) Has been skipped
This commit is contained in:
parent
44f658063e
commit
1b75b78d1c
@ -5,6 +5,8 @@ name: Go CI Pipeline
|
||||
# Step 1: Thêm trigger pull_request
|
||||
on:
|
||||
push:
|
||||
tags:
|
||||
- 'v*.*.*'
|
||||
branches: [ master ] # Hoặc main
|
||||
|
||||
jobs:
|
||||
@ -155,7 +157,7 @@ jobs:
|
||||
file: ./Dockerfile.prod # Chỉ định Dockerfile cho production
|
||||
push: true # Đẩy image lên registry
|
||||
tags: | # Đặt tên và tag cho image
|
||||
${{ gitea.server_url }}/${{ gitea.repository }}:${{ gitea.sha }} # Tag bằng commit SHA (duy nhất)
|
||||
${{ gitea.server_url }}/${{ gitea.repository }}:${{ gitea.ref_name }} # Tag bằng commit SHA (duy nhất)
|
||||
${{ gitea.server_url }}/${{ gitea.repository }}:latest # Tag là latest
|
||||
# cache-from: type=gha # Bật cache build layer (tùy chọn)
|
||||
# cache-to: type=gha,mode=max
|
||||
@ -171,7 +173,7 @@ jobs:
|
||||
# Lấy thông tin image vừa push
|
||||
# Lưu ý: Kiểm tra lại biến context chính xác của Gitea Actions
|
||||
- name: Set image name
|
||||
run: echo "IMAGE_NAME=${{ gitea.server_url }}/${{ gitea.repository }}:${{ gitea.sha }}" >> $GITHUB_ENV
|
||||
run: echo "IMAGE_NAME=${{ gitea.server_url }}/${{ gitea.repository }}:${{ gitea.ref_name }}" >> $GITHUB_ENV
|
||||
- name: Cài Docker CLI
|
||||
run: |
|
||||
apt-get update
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user