Skip to content

Commit

Permalink
临时添加目录中小于三个文件的方法
Browse files Browse the repository at this point in the history
  • Loading branch information
zhangyiming748 committed Jun 25, 2024
1 parent 8a17cba commit 6fc50e0
Show file tree
Hide file tree
Showing 4 changed files with 42 additions and 48 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/docker_push_image.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: Publish Docker Image

on:
push:
tags:
- 'v*'

jobs:
build-and-push:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4

# - name: Set up QEMU
# uses: docker/setup-qemu-action@v3

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

- name: Log in to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}

- name: Extract Docker metadata
id: meta
uses: docker/metadata-action@v5
with:
images: zhangyiming748/convertvideo

- name: Build and push Docker image
uses: docker/build-push-action@v5
with:
context: .
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
45 changes: 0 additions & 45 deletions .github/workflows/xz.yml

This file was deleted.

4 changes: 2 additions & 2 deletions constant/constant.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ import (
)

var (
Root string = "E:\\pikpak\\直播" // 工作目录 如果为空 默认/data
Root string = "/data" // 工作目录 如果为空 默认/data
//To string = "clip" // 转换到的编码 如果为空 默认vp9
To string = "lessvp9" // 转换到的编码 如果为空 默认vp9
To string = "vp9" // 转换到的编码 如果为空 默认vp9
//To string = "merge" // 转换到的编码 如果为空 默认vp9
Direction string = "ToRight"
CpuNums int = runtime.NumCPU() // 核心数
Expand Down
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ func setLog() {
}
func NumsOfGoroutine() {
for {
fmt.Printf("当前程序运行时协程个数:%d\n", runtime.NumGoroutine())
fmt.Printf("\r当前程序运行时协程个数:%d\n", runtime.NumGoroutine())
time.Sleep(1 * time.Second)
}
}

0 comments on commit 6fc50e0

Please sign in to comment.