From dc1e9a8aaaec23b2844862dde7d09da214e82eb6 Mon Sep 17 00:00:00 2001 From: yisier <1340976576@qq.com> Date: Fri, 2 Jun 2023 10:33:15 +0800 Subject: [PATCH] build --- .github/workflows/pkg.yml | 50 +-------------------------------------- build.sh | 2 +- 2 files changed, 2 insertions(+), 50 deletions(-) diff --git a/.github/workflows/pkg.yml b/.github/workflows/pkg.yml index 2bf03da..21135a6 100644 --- a/.github/workflows/pkg.yml +++ b/.github/workflows/pkg.yml @@ -70,52 +70,4 @@ jobs: windows_amd64_server.tar.gz npc_sdk.tar.gz env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - - - build_docker: - - runs-on: ubuntu-latest - steps: - - - name: Check out code into the Go module directory - uses: actions/checkout@v2 - - name: Set env - run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV - - name: Set up QEMU - uses: docker/setup-qemu-action@v1 - - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v1 - - name: Cache Docker layers - uses: actions/cache@v2 - with: - path: /tmp/.buildx-cache - key: ${{ runner.os }}-buildx-${{ github.sha }} - restore-keys: | - ${{ runner.os }}-buildx- - - name: Login to DockerHub - uses: docker/login-action@v1 - with: - username: ${{ secrets.DOCKERHUB_USERNAME }} - password: ${{ secrets.DOCKERHUB_TOKEN }} - - name: Build and push nps - uses: docker/build-push-action@v2 - with: - context: . - file: ./Dockerfile.nps - platforms: linux/amd64,linux/arm,linux/arm64 - push: true - tags: | - ${{ secrets.DOCKERHUB_USERNAME }}/nps:latest - ${{ secrets.DOCKERHUB_USERNAME }}/nps:${{ env.RELEASE_VERSION }} - - name: Build and push npc - uses: docker/build-push-action@v2 - with: - context: . - file: ./Dockerfile.npc - platforms: linux/amd64,linux/arm,linux/arm64 - push: true - tags: | - ${{ secrets.DOCKERHUB_USERNAME }}/npc:latest - ${{ secrets.DOCKERHUB_USERNAME }}/npc:${{ env.RELEASE_VERSION }} - + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file diff --git a/build.sh b/build.sh index 4aa03bb..3af2b15 100755 --- a/build.sh +++ b/build.sh @@ -1,5 +1,5 @@ #/bash/sh -export VERSION=0.26.12 +export VERSION=0.26.16 export GOPROXY=direct sudo apt-get update