From ea3d5a6e2546d5417247665fbe3b0f065e68dffb Mon Sep 17 00:00:00 2001 From: rxdn <29165304+rxdn@users.noreply.github.com> Date: Sun, 2 Jul 2023 17:45:18 +0100 Subject: [PATCH] Update CI --- .circleci/config.yml | 22 ---------------------- .github/workflows/build-and-publish.yml | 15 +-------------- 2 files changed, 1 insertion(+), 36 deletions(-) delete mode 100644 .circleci/config.yml diff --git a/.circleci/config.yml b/.circleci/config.yml deleted file mode 100644 index 5fd6c32..0000000 --- a/.circleci/config.yml +++ /dev/null @@ -1,22 +0,0 @@ -version: 2 -jobs: - build: - docker: - - image: golang:1.18-alpine - working_directory: /go/src/github.com/TicketsBot/GoPanel - - steps: - - checkout - - - restore_cache: - keys: - - v1-pkg-cache - - - run: - name: Install czlib & GCC - command: apk add zlib-dev gcc musl-dev - - - run: go build cmd/panel/main.go - - - store_artifacts: - path: /go/src/github.com/TicketsBot/GoPanel/main \ No newline at end of file diff --git a/.github/workflows/build-and-publish.yml b/.github/workflows/build-and-publish.yml index 7920a92..dd806c2 100644 --- a/.github/workflows/build-and-publish.yml +++ b/.github/workflows/build-and-publish.yml @@ -2,26 +2,13 @@ name: Build and Publish env: REGISTRY: ghcr.io - IMAGE_NAME: panel + IMAGE_NAME: ${{ GITHUB_REPOSITORY_OWNER }}/api:${{ GITHUB_SHA }} on: push: branches: [ "master" ] jobs: - build: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v3 - - - name: Set up Go - uses: actions/setup-go@v3 - with: - go-version: 1.19 - - - name: Build - run: go build -v ./... - publish-image: runs-on: ubuntu-latest permissions: