mirror of
https://github.com/xiaoqidun/palgs.git
synced 2025-12-15 20:18:34 +08:00
feat(构建迁移): 构建迁移
This commit is contained in:
17
.drone.yml
17
.drone.yml
@@ -1,17 +0,0 @@
|
||||
kind: pipeline
|
||||
type: docker
|
||||
name: default
|
||||
node:
|
||||
region: cn
|
||||
steps:
|
||||
- name: docker-cn
|
||||
pull: if-not-exists
|
||||
image: plugins/docker
|
||||
settings:
|
||||
repo: ccr.ccs.tencentyun.com/xiaoqidun/palgs
|
||||
registry: ccr.ccs.tencentyun.com
|
||||
username:
|
||||
from_secret: docker_username
|
||||
password:
|
||||
from_secret: docker_password
|
||||
dockerfile: Dockerfile
|
||||
28
.gitea/workflows/build.yaml
Normal file
28
.gitea/workflows/build.yaml
Normal file
@@ -0,0 +1,28 @@
|
||||
on: [push, workflow_dispatch]
|
||||
jobs:
|
||||
build:
|
||||
runs-on: cn
|
||||
steps:
|
||||
- name: checkout
|
||||
uses: actions/checkout@v6
|
||||
- name: docker setup
|
||||
uses: docker/setup-buildx-action@v3
|
||||
with:
|
||||
driver-opts: |
|
||||
"env.http_proxy=${{ env.HTTP_PROXY }}"
|
||||
"env.https_proxy=${{ env.HTTPS_PROXY }}"
|
||||
"env.no_proxy=${{ env.NO_PROXY }}"
|
||||
- name: docker login
|
||||
uses: docker/login-action@v3
|
||||
with:
|
||||
registry: ccr.ccs.tencentyun.com
|
||||
username: ${{ secrets.docker_username }}
|
||||
password: ${{ secrets.docker_password }}
|
||||
- name: docker build
|
||||
uses: docker/build-push-action@v6
|
||||
with:
|
||||
context: .
|
||||
push: true
|
||||
provenance: false
|
||||
tags: |
|
||||
ccr.ccs.tencentyun.com/xiaoqidun/palgs:latest
|
||||
Reference in New Issue
Block a user