Projects STRLCPY SeaMoon Commits f7de6a00
🤬
  • ■ ■ ■ ■
    .github/conf/.goreleaser.yml
    skipped 15 lines
    16 16   - 6
    17 17   - 7
    18 18   ldflags:
    19  - - -s -w -X github.com/DVKunion/SeaMoon/system/xlog.Version={{.Version}} -X github.com/DVKunion/SeaMoon/system/xlog.Commit={{.ShortCommit}}
     19 + - -s -w -X github.com/DVKunion/SeaMoon/pkg/system/xlog.Version={{.Version}} -X github.com/DVKunion/SeaMoon/pkg/system/xlog.Commit={{.ShortCommit}}
    20 20  checksum:
    21 21   name_template: 'checksums.txt'
    22 22  snapshot:
    skipped 12 lines
  • ■ ■ ■ ■ ■ ■
    .github/workflows/sync.yml
    skipped 45 lines
    46 46   run: |
    47 47   skopeo sync --src docker --dest docker --dest-creds ${{ secrets.ALIYUN_USERNAME }}:${{ secrets.ALIYUN_PASSWORD }} docker.io/dvkunion/seamoon:${{github.ref_name}} ${{ matrix.registry }}/${{ matrix.repo }}
    48 48   skopeo sync --src docker --dest docker --dest-creds ${{ secrets.ALIYUN_USERNAME }}:${{ secrets.ALIYUN_PASSWORD }} docker.io/dvkunion/seamoon:latest ${{ matrix.registry }}/${{ matrix.repo }}
    49  - 
    50 49   package-tencent:
    51 50   name: package-tecent
    52 51   runs-on: ubuntu-20.04
    skipped 12 lines
    65 64   uswccr.ccs.tencentyun.com
    66 65   ]
    67 66   repo: [seamoon]
    68  - include:
    69  - - registry: ccr.ccs.tencentyun.com
    70  - repo: [dvkunion]
    71 67   steps:
    72 68   - uses: actions/checkout@v4
    73 69   - name: skopeo-copy
    74 70   run: |
    75 71   skopeo sync --src docker --dest docker --dest-creds ${{ secrets.TENCENT_USERNAME }}:${{ secrets.TENCENT_PASSWORD }} docker.io/dvkunion/seamoon:${{github.ref_name}} ${{ matrix.registry }}/${{ matrix.repo }}
    76 72   skopeo sync --src docker --dest docker --dest-creds ${{ secrets.TENCENT_USERNAME }}:${{ secrets.TENCENT_PASSWORD }} docker.io/dvkunion/seamoon:latest ${{ matrix.registry }}/${{ matrix.repo }}
     73 + package-tencent-inbound:
     74 + name: package-tecent-inbound
     75 + runs-on: ubuntu-20.04
     76 + if: startsWith(github.ref, 'refs/tags/')
     77 + steps:
     78 + - uses: actions/checkout@v4
     79 + - name: skopeo-copy
     80 + run: |
     81 + skopeo sync --src docker --dest docker --dest-creds ${{ secrets.TENCENT_USERNAME }}:${{ secrets.TENCENT_PASSWORD }} docker.io/dvkunion/seamoon:${{github.ref_name}} ccr.ccs.tencentyun.com/dvkunion
     82 + skopeo sync --src docker --dest docker --dest-creds ${{ secrets.TENCENT_USERNAME }}:${{ secrets.TENCENT_PASSWORD }} docker.io/dvkunion/seamoon:latest ccr.ccs.tencentyun.com/dvkunion
    77 83   
  • ■ ■ ■ ■
    Dockerfile
    skipped 5 lines
    6 6  ENV CGO_ENABLED 0
    7 7  ENV VERSION=${VERSION}
    8 8  ENV SHA=${SHA}
    9  -RUN go build -v -ldflags "-X github.com/DVKunion/SeaMoon/system/xlog.Version=${VERSION} -X github.com/DVKunion/SeaMoon/system/xlog.Commit=${SHA}" -o /tmp/seamoon cmd/main.go
     9 +RUN go build -v -ldflags "-X github.com/DVKunion/SeaMoon/pkg/system/xlog.Version=${VERSION} -X github.com/DVKunion/SeaMoon/pkg/system/xlog.Commit=${SHA}" -o /tmp/seamoon cmd/main.go
    10 10  RUN chmod +x /tmp/seamoon
    11 11  RUN sed -i 's/dl-cdn.alpinelinux.org/mirrors.tuna.tsinghua.edu.cn/g' /etc/apk/repositories && \
    12 12   apk add upx && upx -9 /tmp/seamoon
    skipped 12 lines
Please wait...
Page is in error, reload to recover