Update CI

This commit is contained in:
rxdn 2023-07-02 17:45:18 +01:00
parent 1d3ea3452a
commit ea3d5a6e25
2 changed files with 1 additions and 36 deletions

View File

@ -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

View File

@ -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: